The New Way to Build with AI! Introducing ReUI — the developer platform for agentic UI with shadcn/ui
Browse ReUI Pro

error


trying to get up the django version of django of metronic.
im getting this error.
[webpack-cli] Failed to load 'C:\Users\Admin\Desktop\django\starterkit\_keenthemes\tools\webpack.config.js' config
[webpack-cli] ReferenceError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and 'C:\Users\Admin\Desktop\django\starterkit\_keenthemes\tools\package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
at file:///C:/Users/Admin/Desktop/django/starterkit/_keenthemes/tools/webpack.config.js:1:17
at ModuleJob.run (node:internal/modules/esm/module_job:217:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async importModuleDynamicallyWrapper (node:internal/vm/module:431:15)
at async WebpackCLI.tryRequireThenImport (C:\Users\Admin\Desktop\django\starterkit\_keenthemes\tools\node_modules\webpack-cli\lib\webpack-cli.js:232:34)
at async loadConfigByPath (C:\Users\Admin\Desktop\django\starterkit\_keenthemes\tools\node_modules\webpack-cli\lib\webpack-cli.js:1406:27)
at async WebpackCLI.loadConfig (C:\Users\Admin\Desktop\django\starterkit\_keenthemes\tools\node_modules\webpack-cli\lib\webpack-cli.js:1515:38)
at async WebpackCLI.createCompiler (C:\Users\Admin\Desktop\django\starterkit\_keenthemes\tools\node_modules\webpack-cli\lib\webpack-cli.js:1781:22)
at async WebpackCLI.runWebpack (C:\Users\Admin\Desktop\django\starterkit\_keenthemes\tools\node_modules\webpack-cli\lib\webpack-cli.js:1877:20)
at async Command.<anonymous> (C:\Users\Admin\Desktop\django\starterkit\_keenthemes\tools\node_modules\webpack-cli\lib\webpack-cli.js:944:21)


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 (5)


Thanks for sharing nice information with us. i like your post and all you share with us is uptodate and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job.

Raped



Great post full of useful tips! My site is fairly new and I am also having a hard time getting my readers to leave comments. Analytics shows they are coming to the site but I have a feeling “nobody wants to be first”.
Raped



Consequently, starting in the amount of electronic marketing strategy, is whenever a company's existing website, which will be to review the present site and its purpose is to improve the potency of the future. There is no evidence that the development an
Mitolyn



Consequently, starting in the amount of electronic marketing strategy, is whenever a company's existing website, which will be to review the present site and its purpose is to improve the potency of the future. There is no evidence that the development an
Prime Biome


Deleted comment
Deleted comment
 
Deleted comment

Hi,

If you are using webpack to build, please remove "type": "module" from package.json file. After making this change, try running your webpack build again.

Thanks


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  :(
buy metronic keenthemes mega bundle

ReUI

Open-source React components, blocks and templates built on shadcn/ui and Tailwind CSS by Keenthemes.