vue-iclient
vue-iclient copied to clipboard
vue3运行@supermap/vue-iclient-mapboxgl
当我npm安装好@supermap/vue-iclient-mapboxgl,其中main.js的代码如下
import './assets/main.css' import { createApp } from 'vue' import VueiClient from '@supermap/vue-iclient-mapboxgl'; import App from './App.vue' const app=creatApp(App) app.use(VueiClient) app.mount('#app')
运行时报错
X [ERROR] No loader is configured for ".vue" files: node_modules/@supermap/vue-iclient-mapboxgl/node_modules/vue-echarts/components/ECharts.vue
node_modules/@supermap/vue-iclient-mapboxgl/lib/time-range/index.js:205:25:
205 │ module.exports = require("vue-echarts");
╵ ~~~~~~~~~~~~~
X [ERROR] Could not resolve "merge-descriptors"
node_modules/vue-cesium/lib/utils/mergeDescriptors.js:13:29:
13 │ import mergeDescriptors from 'merge-descriptors';
╵ ~~~~~~~~~~~~~~~~~~~
You can mark the path "merge-descriptors" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.