Skip to content

Commit 9fe342d

Browse files
author
徐远翔
committedMay 20, 2020
fix: 将 @umijs/runtime 加入 dependencies
`@umijs/runtime`必须安装到用户 RN 工程的 node_modules 中,否则 umi 会使用 @umijs/preset-built-in/node_modules 目录中的`@umijs/runtime`,导致 RN Haste Module 无法加载。
1 parent 0cfb308 commit 9fe342d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎packages/umi-preset-react-native/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
},
5050
"dependencies": {
5151
"@types/react-router-native": "5.1.0",
52+
"@umijs/runtime": "^3.0.0",
5253
"babel-plugin-module-resolver": "4.0.0",
5354
"memoizerific": "1.11.3",
5455
"react-router-native": "5.1.2"

0 commit comments

Comments
 (0)