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-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 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.