Error: jest-haste-map: @providesModule naming collision when using a local dependency

前端 未结 5 1396
旧时难觅i
旧时难觅i 2021-01-13 07:50

I\'m using a local module in package.json that also has react-native as a dependency.

In my APP package.json:

         


        
5条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-13 08:20

    I also got the same error. I tried below steps, its works like a charming.

    Please remove all react-native specific folders from "%appdata%\Temp" and then try below commands:

    rimraf node_modules
    npm cache clean --force
    npm install
    rm -rf ios/build
    

    Change /Users/Jebasuthan/XcodeProject/Game/ios/Pods/React/package.json to something else

    non recursive

提交回复
热议问题