fix(dva): dva model import undefined when from umi#523
Merged
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.
|
xiaohuoni
approved these changes
Apr 1, 2021
Member
|
不过没看明白,这个和关联的issues有什么关系,dva 的文件 load 和 umi 的导出有什么关系嘛? |
Contributor
Author
有,循环依赖 |
Contributor
Author
|
ping @sorrycc |
sorrycc
approved these changes
Apr 9, 2021
Member
|
umi 的文档同步更新下。 |
4 tasks
请问这个问题如何解决的呢? 看了官网和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: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: umijs/umi#4779, umijs/umi#5604
Refs: #366
复现demo:
dva-model-issue.zip