Cannot read properties of undefined (reading '@@initialState') #7466
Unanswered
lizhenwei001
asked this question in
Q&A
Replies: 2 comments
|
版本:"umi": "^3.5.0", 请问是怎么解决的,我也出现这个问题了。 umi.75ddfbf2.js:223 TypeError: Cannot read properties of undefined (reading '@@initialstate') |
0 replies
|
我的问题定位到了,是useModel导出的有问题,TS提示“umi”没有导出useModel,我修复后useModel 是从'@/.umi/plugin-model/useModel';导出的 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
关于umi本地运行run start功能界面都可以正常显示, 但是打包成dist上线后 其他功能都能正常显示,却有一个功能页面报错, 页面不显示 提示 Cannot read properties of undefined (reading '@@initialstate') 什么原因? 应该怎么解决? 求大佬帮帮忙,万分感谢!
All reactions