-
Notifications
You must be signed in to change notification settings - Fork 236
fix(dva): dva model import undefined when from umi #523
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
Conversation
|
这个可以合并过去了吗 |
Codecov Report
@@ Coverage Diff @@
## master #523 +/- ##
==========================================
+ Coverage 47.63% 47.73% +0.10%
==========================================
Files 66 66
Lines 1541 1544 +3
Branches 424 427 +3
==========================================
+ Hits 734 737 +3
Misses 806 806
Partials 1 1
Continue to review full report at Codecov.
|
|
不过没看明白,这个和关联的issues有什么关系,dva 的文件 load 和 umi 的导出有什么关系嘛? |
有,循环依赖 |
|
ping @sorrycc |
|
umi 的文档同步更新下。 |
请问这个问题如何解决的呢? 看了官网和github,还是没有找到解决方案。 {
nodeModulesTransform: {
type: 'none',
},
dva: {
disableModelsReExport: true,
lazyLoad: true,
},
// layout: {},
routes: [
{ path: '/', component: '@/pages/index' },
{ path: '/users', component: '@/pages/users' }, // , wrappers: ['@/auth.js']
],
fastRefresh: {},
}这样配置了,还是不行。 |
+1 按文档上写的dva: { |
Fixes: umijs/umi#4779, umijs/umi#5604
Refs: #366
复现demo:
dva-model-issue.zip