Taro ReactNative 运行报错问题



  • 运行npm run dev:rn

    在浏览器输入:http://127.0.0.1:8081/rn_temp/index.bundle?platform=android&dev=true
    87e32153-e5c5-4d20-88d9-39b7525d6105-image.png

    运行:http://127.0.0.1:8081/
    174cd444-5bda-48a4-ae04-09606deff0c6-image.png

    TIM图片20200522145421.png TIM图片20200522145415.png TIM图片20200522145426.png

    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.json

    This 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)


登录后回复