-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jest shows warning about @providesModule naming collision
after upgrade RN from 0.42.0 to 0.43.1
#13364
Comments
@providesModule naming collision
after upgrade RN from 0.42.0 to 0.43.1
I found this issue has already reported on #11200. But it still happened on RN 0.43.2. |
Im having same issue when adding react-native-router-flux to my project on RN 0.43.4 |
Issue seems to be with react-native-router-flux 3.38.1 - goes away when rolling back to 3.38.0. |
Thanks @nowtech , I was struggling with this. I can confirm your workaround worked for me. |
I have this, or a similar, issue but don't use react-native-router-flux. |
+1 |
Duplicate module name: fb-watchman
collides with
RN upgrade from 0.44.0 > 0.45.1 |
+1 |
this issue persists even if i'm not using react-native-router-flux |
+1 |
4 similar comments
+1 |
+1 |
+1 |
+1 |
Also hitting this, any workarounds? |
Have you tried the rollback to react-native-router-flux 3.38.0? |
I think this is coming from babel-preset-react-native 2.0.0, I had to role back to 1.9.2. |
+1 0.45.1 |
I have similar issue, but the collision is with module: react-native-draggable-board @providesModule naming collision: Paths: /home/edgar/Alce/react_native/AciTimeTracking/node_modules/react-native/Libraries/Renderer/src/renderers/shared/shared/event/eventPlugins/TouchHistoryMath.js collides with /home/edgar/Alce/react_native/AciTimeTracking/node_modules/react-native-draggable-board/node_modules/react-native/Libraries/Renderer/src/renderers/shared/stack/event/eventPlugins/TouchHistoryMath.js |
I was able to resolve this by rolling my project back to react-native 0.42.3, which I did in part to avoid the dependency on the react 16 alpha releases. Still not sure why they have the stable releases of react-native (ie 0.43+) depending on an alpha release... |
For me this is caused by yarnpkg/yarn#1334. Installing with Another workaround is to add a |
This happened to me for every module. Instead of doing rm -rf node_modules, I just renamed them to node_modules1, node_modules2. I had to move them outside the app to remove the error. |
This warning disappeared, when I upgrade npm to 5.3.0 |
I also have same problem when I upgrade react native from 0.40 to 0.46. I upgrade npm to 5.3.0 and it works for me. |
+1 |
1 similar comment
+1 |
This problem seems to disappear when I rename folder where I have installed Watchman so apparently it's related to it. Unfortunately, I need the watchman for some other things so it's kinda stalemate. Windows 10 x64 |
meet it in 0.45.1
is there any solution ? by the way, i just delete the 'node_modules' folder which under the folder 'fbjs' and floder 'simple-plist', and the warning gone. |
Having the same issue as follows, ( Upgrading react-native from 0.36.0 to 0.47.1 )
I tried deleting node modules and reinstalling, not success. Any solution? |
Are you guys using Watchman? As I said above, it solved it for me disabling Watchman. |
Same Error for every module: jest-haste-map: @providesModule naming collision:Any Solution? |
+1 |
We didn't have react-native-router-flux in our dependencies - adding a specific dependency on 3.38.0 took care of these errors. If you're not specifically referencing react-native-router-flux in package.json but are using react-native, try adding react-native-router-flux@3.38.0 to your package.json dependencies. |
Hi, I was able to get over it, by deleting npm_tmp directory. After that the error disappeared. |
@ishantoberoi where is the |
+1 |
i solve the problem |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions. |
Have the same problem |
This warning is caused by a @providesModule declaration with the same name across two different files. |
+1 |
+1 |
Upgrading to npm@5.6.0 worked for me |
I Face the same issue, solution: erase jest-cache folder. |
I am still facing the issue. I have npm version as 5.6.0 and jest version as ^22.4.3. I get errors for duplication. |
I'm getting this issue after following instruction to bring in Firebase. I already had crashlytics working but after following update instructions it's all jacked. https://www.fabric.io/epitel-inc/ios/apps/com.epitel.aura-test/firebase/answers-events/update-sdk
|
After upgrading RN from 0.42.0 to 0.43.1, jest shows warning about
@providesModule naming collision
:The text was updated successfully, but these errors were encountered: