Taro ReactNative 运行报错问题
-
运行npm run dev:rn
在浏览器输入:http://127.0.0.1:8081/rn_temp/index.bundle?platform=android&dev=true
Error: jest-haste-map: Haste module naming collision:
Duplicate module name: react-native
Paths: C:\Users\LYJ\Desktop\weicai\taro-native-shell\node_modules\react-native\package.json collides with C:\Users\LYJ\Desktop\weicai\node_modules\react-native\package.jsonThis error is caused by
hasteImpl
returning the same name for different files.
at setModule (C:\Users\LYJ\Desktop\weicai\node_modules\jest-haste-map\build\index.js:569:17)
at workerReply (C:\Users\LYJ\Desktop\weicai\node_modules\jest-haste-map\build\index.js:641:9)
at process._tickCallback (internal/process/next_tick.js:68:7)