question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Duplicate module name: StaticContainer.react

See original GitHub issue

I am trying to run an android app and i am getting this error

Loading dependency graph...
Bundling `index.android.js`
  Analysing...Failed to build DependencyGraph: @providesModule naming collision:
  Duplicate module name: StaticContainer.react
  Paths: C:/Users/user/mt\node_modules/react-static-container/lib/StaticContainer.react.js collides with C:/Users/user/mt\node_modules/react-native/Libraries/Components/StaticContainer.js

This error is caused by a @providesModule declaration with the same name across two different files.
Error: @providesModule naming collision:
  Duplicate module name: StaticContainer.react
  Paths: C:/Users/user/mt\node_modules/react-static-container/lib/StaticContainer.react.js collides with C:/Users/user/mt\node_modules/react-native/Libraries/Components/StaticContainer.js

This error is caused by a @providesModule declaration with the same name across two different files.
    at HasteMap._updateHasteMap (C:/Users/user/mt/node_modules/react-native/packager/src/node-haste/DependencyGraph/HasteMap.js:158:13)
    at module.getName.then.name (C:/Users/user/mt/node_modules/react-native/packager/src/node-haste/DependencyGraph/HasteMap.js:119:31)
Press any key to continue . . .

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
shivrajkumarcommented, Jun 19, 2017

@kabala @openqubit Could you please specify the version of native-base. And also, are you using react-native-router-flux. If yes, which version?

0reactions
kabalacommented, Jun 21, 2017

Hi, the problem was related with watchman installed globally. I uninstalled it and now it’s working! Thx very much guys!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Duplicate module name: react-native-vector-icons
I'm having the same exact problem arise when starting with react-native start . Running npm i does have some warnings for react-dom, react- ......
Read more >
react-drag-drop-container - npm package - Snyk
DragDropContainer and DropTarget. Live demo: peterh32.github.io/react-drag-drop-container. Features. Very easy to implement and understand.
Read more >
react-native-codegen | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
react-native-router-flux/CHANGELOG.md - UNPKG
1377, - Duplicate module name: react-native-packager ... 1549, - duplicated StaticContainer on `flow check` ...
Read more >
reapp/reapp - Gitter
lol... yeah... do you know if a name change is possible on Git? ... I wanted to react and reapp to create some...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found