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

本地预览正常,打包后报错 #441

Open
dai-yi-heng opened this issue Mar 11, 2025 · 1 comment
Open

本地预览正常,打包后报错 #441

dai-yi-heng opened this issue Mar 11, 2025 · 1 comment

Comments

@dai-yi-heng
Copy link

Image

Image
ReferenceError: Cannot access 'e' before initialization
“@vue-office/pdf”: “^2.0.10”,
“vite”: “^4.2.0”,
“vue”: “^3.4.21”,

@dai-yi-heng
Copy link
Author

已解决: 打包配置加上
commonjsOptions: {
requireReturnsDefault: "namespace",
},

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