使用的vue-loader 版本过高(16.x) 降级为15.x 版本即可
// 引入vue-amap import VueAMap, {initAMapApiLoader} from '@vuemap/vue-amap'; import '@vuemap/vue-amap/dist/style.css'; // 初始化vue-amap initAMapApiLoader({ // 高德的key key: 'YOUR_KEY', securityJsCode: 'securityJsCode', // 新版key需要配合安全密钥使用 //Loca:{ // version: '...
涉及的安装包:"babel-core": "^6.0.0", "babel-loader": "^6.2.5", "babel-plugin-transform-runtime": "^6.15.0", "babel-preset-es2015": "^6.16.0", "babel-preset-stage-3": "^6.17.0", "babel-runtime": "^6.11.6", .babelrc文件的配置:{"presets": ["es2015", "stage-3"],"p...
引入@vuemap/vue-amap // 引入vue-amapimportVueAMap, {initAMapApiLoader}from'@vuemap/vue-amap';import'@vuemap/vue-amap/dist/style.css';// 初始化vue-amapinitAMapApiLoader({// 高德的keykey:'YOUR_KEY',securityJsCode:'securityJsCode',// 新版key需要配合安全密钥使用//Loca:{// version: '2.0...