ReferenceError: module is not defined
➜ press h + enter to show help
file:///C:/Users/eduar/Downloads/themeforest-cNHNYOJH-metronic-responsive-admin-dashboard-template/metronic-v9.1.2/metronic-v9.1.2/metronic-tailwind-react/typescript/vite/tailwind.config.js:1
module.exports = {
^
ReferenceError: module is not defined
at file:///C:/Users/eduar/Downloads/themeforest-cNHNYOJH-metronic-responsive-admin-dashboard-template/metronic-v9.1.2/metronic-v9.1.2/metronic-tailwind-react/typescript/vite/tailwind.config.js:1:1
at ModuleJobSync.runSync (node:internal/modules/esm/module_job:395:35)
at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:329:47)
at loadESMFromCJS (node:internal/modules/cjs/loader:1414:24)
at Module._compile (node:internal/modules/cjs/loader:1547:5)
at Object..js (node:internal/modules/cjs/loader:1677:16)
at Module.load (node:internal/modules/cjs/loader:1318:32)
at Function._load (node:internal/modules/cjs/loader:1128:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)
Node.js v22.12.0
error Command failed with exit code 1.
info Visit for documentation about this command. ------------------------------------------------------------------------------------------
I I installed the dependencies and then when I tried to run it, I received this error. I ran 'yarn' and then 'yarn dev', can someone help me?
Replies (1)
Hi,
Could you let us know if you've made any modifications to your tailwind.config.js? Also, is this issue occurring with the default setup of Metronic 9 Tailwind React Vite?
Please provide detailed steps to reproduce the issue. So far, we haven't received similar reports, so it appears to be a particular case related to your configuration.
Regards,
Sean