在使用官网教学(1、准备依赖资源 | SuperMap_iClient3D_VUE_for_WebGL (supermapol.com))时报错,显示的是缺少index.css。
[plugin:vite:import-analysis] Missing "./lib/theme/index.css" specifier in "@supermap/iclient3d-vue-for-webgl" package
D:/Ddesktop/Front-end/webgis/vue3cdut2/src/main.js
at e (file:///D:/Ddesktop/Front-end/webgis/vue3cdut2/node_modules/vite/dist/node/chunks/dep-jDlpJiMN.js:47384:25)
at n (file:///D:/Ddesktop/Front-end/webgis/vue3cdut2/node_modules/vite/dist/node/chunks/dep-jDlpJiMN.js:47384:627)
at o (file:///D:/Ddesktop/Front-end/webgis/vue3cdut2/node_modules/vite/dist/node/chunks/dep-jDlpJiMN.js:47384:1297)
at resolveExportsOrImports (file:///D:/Ddesktop/Front-end/webgis/vue3cdut2/node_modules/vite/dist/node/chunks/dep-jDlpJiMN.js:48061:20)
at resolveDeepImport (file:///D:/Ddesktop/Front-end/webgis/vue3cdut2/node_modules/vite/dist/node/chunks/dep-jDlpJiMN.js:48080:31)
at tryNodeResolve (file:///D:/Ddesktop/Front-end/webgis/vue3cdut2/node_modules/vite/dist/node/chunks/dep-jDlpJiMN.js:47805:20)
at Context.resolveId (file:///D:/Ddesktop/Front-end/webgis/vue3cdut2/node_modules/vite/dist/node/chunks/dep-jDlpJiMN.js:47568:28)
at async Object.resolveId (file:///D:/Ddesktop/Front-end/webgis/vue3cdut2/node_modules/vite/dist/node/chunks/dep-jDlpJiMN.js:50762:32)
at async TransformContext.resolve (file:///D:/Ddesktop/Front-end/webgis/vue3cdut2/node_modules/vite/dist/node/chunks/dep-jDlpJiMN.js:50453:23)
at async normalizeUrl (file:///D:/Ddesktop/Front-end/webgis/vue3cdut2/node_modules/vite/dist/node/chunks/dep-jDlpJiMN.js:65586:34
Click outside, press Esc key, or fix the code to dismiss.
You can also disable this overlay by setting server.hmr.overlay
to false
in vite.config.js.