Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue3运行@supermap/vue-iclient-mapboxgl #62

Open
qe-present opened this issue Mar 16, 2024 · 0 comments
Open

vue3运行@supermap/vue-iclient-mapboxgl #62

qe-present opened this issue Mar 16, 2024 · 0 comments

Comments

@qe-present
Copy link

当我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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant