Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

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?


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

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


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(