使用产品: SuperMap iClient JavaScript 10i(2021) for Leaflet
操作系统:win10 x64
问题详细描述:项目使用vue,参考开发指南进行配置,在运行是使用webpack打包运行,出现了以下错误提示:
ERROR Failed to compile with 1 errors 上午10:38:36
error in ./node_modules/@supermap/iclient-common/iServer/ImageService.js
Module parse failed: Unexpected token (82:25)
You may need an appropriate loader to handle this file type.
| */
| search(imageSearchParameter) {
| var postBody = { ...(imageSearchParameter || {}) };
| var me = this;
| var path = Util.convertPath('/search');
@ ./node_modules/@supermap/iclient-common/iServer/index.js 245:0-42
@ ./node_modules/@supermap/iclient-common/index.js
@ ./node_modules/@supermap/iclient-leaflet/index.js
@ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/index.vue
@ ./src/views/index.vue
@ ./src/router/index.js
@ ./src/main.js
关于webpack.base.conf.js的配置,参照了开发指南中的打包配置:
要如何解决呢?