同一个项目多个vue3.x版本共存时,是否会出现问题? #7621
Answered
by
BryceXu94
ddmy
asked this question in
Help/Questions
-
我自己写的vue3-gantt 组件. vue3-gannt package.json:
我工作中的项目 package.json
在我工作中项目, 引入 script:
template:
报错:
经排查,我发现是 目前的解决办法有两个:
所以我的问题是,我不太清楚这个问题是属于我组件库代码编写的问题,还是vue3的问题?如果是我代码编写的问题,辛苦各位朋友关于这个问题给予一些指导,非常感谢! |
Beta Was this translation helpful? Give feedback.
Answered by
BryceXu94
Feb 2, 2023
Replies: 2 comments 1 reply
-
组件库的vue依赖应该放在peerDependencies |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ddmy
-
多个版本会有问题。你应该改组件库打包配置,把 vue 配置到 |
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
组件库的vue依赖应该放在peerDependencies