We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.4.27
https://github.com/Future-came/vue3-demo.git
1、rm -rf dist 2、pnpm build 3、pnpm preview 4、打开http://localhost:4173,点击按钮跳转无反应,打开http://localhost:4173/pageA白屏
开发环境正常且打包后,预览时各页面正常。
开发环境正常, 但是打包后,进入pageA页面白屏,并且控制台无任何报错。
System: OS: Windows 10 10.0.19045 CPU: (40) x64 Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz Memory: 109.43 GB / 127.89 GB Binaries: Node: 21.5.0 - ~\AppData\Local\fnm_multishells\18692_1716339535488\node.EXE npm: 10.7.0 - ~\AppData\Local\fnm_multishells\18692_1716339535488\npm.CMD pnpm: 8.15.5 - ~\AppData\Local\fnm_multishells\18692_1716339535488\pnpm.CMD Browsers: Edge: Chromium (123.0.2420.97) Internet Explorer: 11.0.19041.4355 npmPackages: vue: ^3.4.27 => 3.4.27
No response
The text was updated successfully, but these errors were encountered:
这个和vue没关系,应该是你在vite中加的插件vite-plugin-top-level-await导致的问题,导入所有模块可以使用const modules = import.meta.glob('./dir/*.js', { eager: true })
Sorry, something went wrong.
非常感谢,尝试了一下,解决了我的问题。
No branches or pull requests
Vue version
3.4.27
Link to minimal reproduction
https://github.com/Future-came/vue3-demo.git
Steps to reproduce
1、rm -rf dist
2、pnpm build
3、pnpm preview
4、打开http://localhost:4173,点击按钮跳转无反应,打开http://localhost:4173/pageA白屏
What is expected?
开发环境正常且打包后,预览时各页面正常。
What is actually happening?
开发环境正常,
但是打包后,进入pageA页面白屏,并且控制台无任何报错。
System Info
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: