vite打包ant-design-vue错误提示 #2136
Unanswered
15643701048a
asked this question in
Q&A
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
vben-admin 2.8版本,ant-design-vue 2.2.8版本打包yarn build 错误提示
[vite]: Rollup failed to resolve import "ant-design-vue/es/vc-table/src/ExpandableRow" from "src\views\message\group\model3.vue".
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
加上
rollupOptions: {
external: ['ant-design-vue'],
}
后打包成功,运行本地打包dist/index.html文件后,浏览器控制台显示
Uncaught TypeError: Failed to resolve module specifier "ant-design-vue". Relative references must start with either "/", "./", or "../".
有没有解决方法?
Beta Was this translation helpful? Give feedback.
All reactions