-
Notifications
You must be signed in to change notification settings - Fork 547
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
下拉菜单 Dropdown只要使用了a-dsubmenu多级菜单,打包时就报错 #2043
Comments
看了一下,好像没有 |
是不是用了 vite-plugin-style-import 这个插件,这个插件在 vite^4.0.0 上会有点问题 |
@Chanzhaoyu |
@zhonghuaifang |
或者你把 |
@Chanzhaoyu 我试试,谢谢 |
记录:问题:升级到最新版的 |
谢谢 已成功解决 year-picker 和 dsubmenu 打包问题 |
基本信息
额外补充
错误信息:
[vite]: Rollup failed to resolve import "D:/www/data_pool/node_modules/@arco-design/web-vue/es/dsubmenu/style/css.js" from "src/views/data-center/metrics-database/components/content-chart-metrics/chart-series-source-box.vue?vue&type=script&setup=true&lang.ts".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
build.rollupOptions.external
error during build:
Error: [vite]: Rollup failed to resolve import "D:/www/data_pool/node_modules/@arco-design/web-vue/es/dsubmenu/style/css.js" from "src/views/data-center/metrics-database/components/content-chart-metrics/chart-series-source-box.vue?vue&type=script&setup=true&lang.ts".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
build.rollupOptions.external
at onRollupWarning (file:///D:/www/data_pool/node_modules/vite/dist/node/chunks/dep-4da11a5e.js:45916:19)
at onwarn (file:///D:/www/data_pool/node_modules/vite/dist/node/chunks/dep-4da11a5e.js:45714:13)
at Object.onwarn (file:///D:/www/data_pool/node_modules/rollup/dist/es/shared/rollup.js:23263:13)
at ModuleLoader.handleResolveId (file:///D:/www/data_pool/node_modules/rollup/dist/es/shared/rollup.js:22158:26)
at file:///D:/www/data_pool/node_modules/rollup/dist/es/shared/rollup.js:22119:26
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The text was updated successfully, but these errors were encountered: