Create-react-native-app: Duplicate module name: glob

Created on 19 Mar 2017  Â·  11Comments  Â·  Source: expo/create-react-native-app

When running npm start, I get this:

jest-haste-map: @providesModule naming collision:
  Duplicate module name: glob
  Paths: /Users/kath/mobile/my-project/node_modules/react-native/node_modules/rimraf/node_modules/glob/package.json collides with /Users/kath/mobile/my-project/node_modules/react-native/node_modules/glob/package.json

This warning is caused by a @providesModule declaration with the same name across two different files.

Most helpful comment

After upgrading to node 7.8.0 and switching to yarn 0.22.0, I no longer experience this problem.

All 11 comments

Have you run npm link or yarn link for any of your app's dependencies?

@dikaiosune I haven't

Interesting. Maybe try deleting node_modules and reinstalling? If that
doesn't work can you paste your package json?

Adam Perry
Sent from mobile

On Mar 19, 2017 11:02 PM, "Katherine Pe" notifications@github.com wrote:

@dikaiosune https://github.com/dikaiosune I haven't

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/react-community/create-react-native-app/issues/95#issuecomment-287683643,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGfyeaqN3rouyuPz0meGLcfPuzKodNhUks5rnhaQgaJpZM4MhtbC
.

Hi! If you're still having problems with this please reopen the issue and I'll see if I can reproduce.

Hello, I am having the same issue.
This is my package json:
{ "name": "MiColonia.Mobile.Client", "version": "0.1.0", "private": true, "devDependencies": { "react-native-scripts": "0.0.26", "jest-expo": "^0.3.0", "react-test-renderer": "~15.4.1" }, "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js", "scripts": { "start": "react-native-scripts start", "eject": "react-native-scripts eject", "android": "react-native-scripts android", "ios": "react-native-scripts ios", "test": "node node_modules/jest/bin/jest.js --watch" }, "jest": { "preset": "jest-expo" }, "dependencies": { "expo": "^15.1.0", "react": "~15.4.0", "react-native": "0.42.3" } }

The steps I followed to get my app running were:

  1. Upgrade NodeJS from version 4.x to 6.x
  2. Installed npm install -g create-react-native-app
  3. Installed XDE

Any idea for solving this?

If you're running the project in XDE, you'll need to use the Expo fork of RN. If you need help with XDE, I'd recommend searching for your issue on the Expo forums.

I'm experiencing this error with a brand new project after running

npm install -g create-react-native-app
create-react-native-app my-app
cd my-app
npm start

I'm using node 6.10.2 and npm 3.10.10.

After upgrading to node 7.8.0 and switching to yarn 0.22.0, I no longer experience this problem.

same issue

same issue, resolved with nvm + node 7.8.0 + yarn v0.23.2

Fixed with: Node 8.1.0 + yarn 0.23.4

Was this page helpful?
0 / 5 - 0 ratings