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

前端 未结 5 1366
旧时难觅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:21

    Faced same issue Resolved it !!

    All the npm packages in project have node modules. Make sure that node_modules directory inside packages should not include already present node module.

    In my case react-native was present in node_modules of my project as well as node_modules of another forked library.

    As the library was forked, I could remove node_modules directory from it and the issue got resolved.

提交回复
热议问题