-
Notifications
You must be signed in to change notification settings - Fork 586
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
5.1.1 版本构建出的 UMD 模块报错,找不到 React #574
Comments
搞个重现看看?我 Debug 一下~ |
应该是的,externals 配置需要省略 |
Fixed in 49a8c61 |
@zombieJ 请发 PR |
5.1.2 版本修复了找不到 React 的报错,但还是没有 icons 全局变量,似乎所有的导出都放到了 window 上webpack 中 externals 配置如下 |
这个问题疑似还在。 |
问题有复现吗 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
5.1.0 正常
升级到 5.1.1 之后出现
Uncaught TypeError: Cannot read properties of undefined (reading 'createContext')
at icons.min.js:1:695124
at icons.min.js:1:795911
at icons.min.js:1:795916
at icons.min.js:1:247
at icons.min.js:1:329
可能的原因是
window 上取不到 window.React 属性,应该直接取 React 属性
The text was updated successfully, but these errors were encountered: