Problem description
For projects created using Vue cli, SuperMap does not report errors
SuperMap reports an error for a project created using webpack
Configuration
npm -v 6.14.10
node -v v14.15.4
“webpack”: “^3.6.0”,
“@supermap/iclient-leaflet”: “^10.2.0”
Solution:
Change the webpack configuration file
Similar Posts:
- Building for production… ERROR TypeError: Cannot read property ‘createHash‘ of undefined
- Webpack packaging error: cannot find module ‘webpack / bin / config yargs’ error reason, [email protected] Step on the pit~
- [Solved] Error: No module factory available for dependency type: ContextElementDependency
- [Solved] Webpack Error: [webpack-cli] Unable to load ‘@webpack-cli/serve’ command
- [Solved] React Project Start Error: Uncaught TypeError: Cannot read property ‘forEach‘ of undefined
- Webpack introduces HTML webpack plugin and reports an error
- Vue configures the compression-webpack-plugin to package and compress JS and CSS Error
- [Solved] NPM installation error: error: eacces: permission denied
- npm ERR! missing script: build [How to Solve]
- electron-vue:Webpack ReferenceError: process is not defined