Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

线上部署报内存溢出:Maximum call stack size exceeded #122

Open
anyone-yuren opened this issue Dec 27, 2023 · 3 comments
Open

线上部署报内存溢出:Maximum call stack size exceeded #122

anyone-yuren opened this issue Dec 27, 2023 · 3 comments

Comments

@anyone-yuren
Copy link

image
image
尝试了2.9.6与2.9.8都是同样的问题。

@Oct072021
Copy link

请问解决了吗

@anyone-yuren
Copy link
Author

解决了,得看你具体的项目结构是怎么样的。如何注入生产环境的。

  1. mian文件写的是tsx,它只支持ts,把main.tsx => main.ts
  2. 如果是pnpm多包管理,检查下路径。

可以参考下我的项目配置:
https://github.com/anyone-yuren/react-antd-admin-pnpm/blob/master/internal/vite-config/src/plugins/mock.ts

@Oct072021
Copy link

受教了,感谢大佬!!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants