[Solved] Vue2.0 + webpack + SuperMap error: Module parse failed: Unexpected token (82:85)

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: