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

vite vue3 打包报错 vue-demi Cannot access 'a' before initialization #314

Open
Laurel-rao opened this issue Jul 3, 2024 · 3 comments

Comments

@Laurel-rao
Copy link

  1. 组件名称及版本: 如@vue-office/docx@1.3.0
  2. 运行环境:
    2.1 浏览器:如谷歌浏览器
    2.2 vue版本:如vue@2.6.0
    2.3 打包工具及版本:
    vite@4.5.1 "vue": "3.4.6", "vue-demi": "^0.14.8",
  3. 问题描述:(如果有报错,麻烦粘贴详细的报错信息、package.json内容等)
dev 运行不报错
build 打包报错
vue-demi-92bac2ad.js:1 Uncaught ReferenceError: Cannot access 'a' before initialization
    at vue-demi-92bac2ad.js:1:101
    at V (vue-demi-92bac2ad.js:1:402)
    at @vue-office-636c0905.js:1:885
    at @vue-office-636c0905.js:1:895
    at @vue-office-636c0905.js:96:21323
@pollux2021
Copy link

有找到解决方法吗?

@501351981
Copy link
Owner

凡是Vue中报错的,直接换纯js预览吧

@xuelangjie
Copy link

vue3+typescript 里面有解决吗

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

4 participants