Do you have a based workable react project for your Metronic 9 template?
I bought your template but I can't seem to figureout the react setup.
Thank you! It works now.
I followed exactly the steps and I get this error when I run 'npm run build':
PS C:\...\metronic-tailwind-html-integration-main\metronic-tailwind-react> npm run build
> metronic-react-tailwind@0.0.0 build
> tsc -b && vite build
src/App.tsx:12:14 - error TS2339: Property 'init' does not exist on type 'typeof import("C:/../metronic-tailwind-react/src/theme/app/layouts/demo1")'.
12 KTLayout.init();
~~~~
Found 1 error.
HI,
To fix this error in file src/theme/app/layouts/demo1.js you should change
KTDom.ready(() => {
KTLayout.init();
});
export default KTLayout;
react-dom_client.js?v=c060d72e:16670 Uncaught
ReferenceError: KTToggle is not defined
at KTLayout._handleSidebar (demo1.js:19:25)
at KTLayout.init (demo1.js:53:9)
at App.tsx:12:14
at commitHookEffectListMount (react-dom_client.js?v=c060d72e:16915:34)
at commitPassiveMountOnFiber (react-dom_client.js?v=c060d72e:18156:19)
at commitPassiveMountEffects_complete (react-dom_client.js?v=c060d72e:18129:17)
at commitPassiveMountEffects_begin (react-dom_client.js?v=c060d72e:18119:15)
at commitPassiveMountEffects (react-dom_client.js?v=c060d72e:18109:11)
at flushPassiveEffectsImpl (react-dom_client.js?v=c060d72e:19490:11)
at flushPassiveEffects (react-dom_client.js?v=c060d72e:19447:22)
_handleSidebar@demo1.js:19
init@demo1.js:53
(anonymous)@App.tsx:12
Show 11 more frames
react-dom_client.js?v=c060d72e:14032 The above error occurred in the <App> component:
at App (http://localhost:5174/src/App.tsx?t=1720307446870:27:3)
Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.