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
There are some unexpected errors during the build process of vite-ssg
Whether there is a solution to the problem
System: OS: Windows 11 10.0.22631 CPU: (20) x64 12th Gen Intel(R) Core(TM) i9-12900H Memory: 13.70 GB / 31.73 GB Binaries: Node: 21.1.0 - D:\nodejs\node.EXE Yarn: 1.22.22 - ~\AppData\Local\pnpm\yarn.CMD npm: 10.2.0 - D:\nodejs\npm.CMD pnpm: 9.12.3 - D:\nodejs\pnpm.CMD bun: 1.1.34 - G:\bun\bun.EXE Browsers: Edge: Chromium (127.0.2651.74) Internet Explorer: 11.0.22621.3527
pnpm
The text was updated successfully, but these errors were encountered:
ssr: { noExternal: ["element-plus"], },
这样可能会有用
Sorry, something went wrong.
修改后,还是会因为Element-plus报错
我后来没用这个库直接用nuxt重构了,改不出来
现在看感觉像nodejs生成资源时,没有浏览器的对象导致的 试试:
ssgOptions: { 'mock': true }
看样子ElementPlus的问题解决了,但是与Swiper又冲突了,我尝试了 ssr: { noExternal: ['element-plus', 'swiper'], }, 也没有作用
类似问题issue也出现过,但是好像没啥用🙃 #294 就是让你用es,#266 说的感觉也没什么用 naive-ui因为提及了,我也去看了下,有 tusen-ai/naive-ui#4225 也出现过类似问题 我是没思路了,以上你可以看看参考下
No branches or pull requests
Describe the bug
There are some unexpected errors during the build process of vite-ssg

Reproduction
Whether there is a solution to the problem
System Info
Used Package Manager
pnpm
Validations
Contributions
The text was updated successfully, but these errors were encountered: