I followed the steps highlighted in the docs, but am receiving an error as shown below: C:\django_demo1\starterkit\_keenthemes\tools>npm run build
> firstname.lastname@example.org build > webpack
[webpack-cli] Failed to load 'C:\django_demo1\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:\django_demo1\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:/django_demo1/starterkit/_keenthemes/tools/webpack.config.js:1:17 at ModuleJob.run (node:internal/modules/esm/module_job:192:25)
In the file django_demo1\starterkit\_keenthemes\tools\package.json, please check if you have removed the line "type": "module". If you have removed it, please try running the command npm run build again and see if the issue persists.
No recent searches
We have sent an activation link to your email. Please click it and you are done.
Your email is confirmed. Please sign in to use our services.