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

插件中将vue作为依赖,打包后出现异常 #3

Open
llemllen opened this issue Feb 7, 2023 · 1 comment
Open

插件中将vue作为依赖,打包后出现异常 #3

llemllen opened this issue Feb 7, 2023 · 1 comment

Comments

@llemllen
Copy link

llemllen commented Feb 7, 2023

在打包后出现如下异常
Cannot read properties of null (reading ‘isCE‘)

经过查询,是因为库组件中使用的vue版本与项目中的vue版本不一致,最终打包后执行报错

@llemllen
Copy link
Author

llemllen commented Feb 7, 2023

在打包后出现如下异常 Cannot read properties of null (reading ‘isCE‘)

经过查询,是因为库组件中使用的vue版本与项目中的vue版本不一致,最终打包后执行报错

vite中可以暂时添加下面的配置处理
resolve: {
dedupe: [
'vue'
]
},

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