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

🐛 [BUG] build之后空白,react-dom.production.min.js:188 TypeError: Cannot read properties of null (reading 'applyPlugins') #11393

Open
minlib opened this issue Nov 21, 2024 · 8 comments

Comments

@minlib
Copy link

minlib commented Nov 21, 2024

🐛 bug 描述

  1. 旧版本升级后,但是build之后访问空白,本地可以运行
  2. 直接把代码下到本地,build 发布后访问空白,本地可以运行

错误如下:
react-dom.production.min.js:188 TypeError: Cannot read properties of null (reading 'applyPlugins')
at I (localeExports.ts:205:26)
at N (localeExports.ts:265:25)
at c (locale.tsx:37:33)

🏞 期望结果 | Expected results

期望发布后可以正常访问

💻 复现代码 | Recurrence code

© 版本信息

  • Ant Design Pro 版本: [e.g. 6.0.0]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. windows]

🚑 其他信息

@minlib
Copy link
Author

minlib commented Nov 22, 2024

这个问题应当被重视,升级之后系统就崩了,官方代码也存在这个问题!!!

请重视,请紧急处理
请重视,请紧急处理
请重视,请紧急处理

@baiyuanyong
Copy link

已经两个月没有commit了,项目人员已经被优化了

@cyqhhj
Copy link

cyqhhj commented Dec 6, 2024

我今天也遇到同样的问题,开发没问题,发布出来就报错
微信截图_20241206172900

@minlib
Copy link
Author

minlib commented Dec 6, 2024 via email

@cyqhhj
Copy link

cyqhhj commented Dec 9, 2024

我找到原因了,发现是umi默认开启了 mako 极速开发,开发和发布的时候有些错误都不会提示出来,关闭mako即可发现错误,处理错误后就正常了。

@minlib
Copy link
Author

minlib commented Dec 9, 2024 via email

@cyqhhj
Copy link

cyqhhj commented Dec 9, 2024

优秀啊,具体在哪里关闭呢?

---原始邮件--- 发件人: @.> 发送时间: 2024年12月9日(周一) 中午11:57 收件人: @.>; 抄送: @.@.>; 主题: Re: [ant-design/ant-design-pro] 🐛 [BUG] build之后空白,react-dom.production.min.js:188 TypeError: Cannot read properties of null (reading 'applyPlugins') (Issue #11393) 我找到原因了,发现是umi默认开启了 mako 极速开发,开发和发布的时候有些错误都不会提示出来,关闭mako即可发现错误,处理错误后就正常了。 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

在config.ts里面,注释掉mako: {},

@minlib
Copy link
Author

minlib commented Dec 9, 2024 via email

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

3 participants