Cannot find entry file node_modules/expo/AppEntry.js in any of the roots:

#1

Fresh install of Expo XDE.
Windows 10

created a new blank template project. Output:

Starting React Native packager...
10:48:40 PM
Scanning 516 folders for symlinks in E:\Projects\test-new-project\node_modules (32ms)
10:48:41 PM
Loading dependency graph.
10:48:41 PM
Running packager on port 19001.
10:48:41 PM
10:48:42 PM
Project opened! You can now use the "Share" or "Device" buttons to view your project.
10:48:45 PM
jest-haste-map: @providesModule naming collision:
  Duplicate module name: EventSubscriptionVendor
  Paths: E:/Projects/test-new-project\node_modules/fbemitter/lib/EventSubscriptionVendor.js collides with E:/Projects/test-new-project\node_modules/react-native/Libraries/EventEmitter/EventSubscriptionVendor.js

This warning is caused by a @providesModule declaration with the same name across two different files.
10:48:45 PM
jest-haste-map: @providesModule naming collision:
  Duplicate module name: EventSubscription
  Paths: E:/Projects/test-new-project\node_modules/fbemitter/lib/EventSubscription.js collides with E:/Projects/test-new-project\node_modules/react-native/Libraries/EventEmitter/EventSubscription.js

This warning is caused by a @providesModule declaration with the same name across two different files.
jest-haste-map: @providesModule naming collision:
  Duplicate module name: EmitterSubscription
  Paths: E:/Projects/test-new-project\node_modules/fbemitter/lib/EmitterSubscription.js collides with E:/Projects/test-new-project\node_modules/react-native/Libraries/EventEmitter/EmitterSubscription.js

This warning is caused by a @providesModule declaration with the same name across two different files.
10:48:45 PM
Dependency graph loaded.
10:49:20 PM
Building JavaScript bundle

Open on iphone:

Cannot find entry file node_modules/expo/AppEntry.js in any of the roots: ["E:\\Projects\\test-new-project"]

ABI19_0_0RCTFatal
ABI19_0_0RCTSetFatalHandler
ABI19_0_0RCTSetFatalHandler
<redacted>
<redacted>
_dispatch_main_queue_callback_4CF
<redacted>
<redacted>
CFRunLoopRunSpecific
GSEventRunModal
UIApplicationMain
Exponent
<redacted>
#2

hello! what version of node? do you have watchman installed? this error is likely related to watchman, see more info on https://github.com/facebook/react-native/issues/14246

#3
E:\Projects>node -v
v8.0.0

E:\Projects>watchman version
{
    "version": "4.9.0",
    "buildinfo": "397ddede7cf42933996aa6e94259261041c6d6f3 2017-06-13T18:35:44.0000000Z"
}
#4

Hi, I was wondering if you figured out the issue. I have tried with both the empty and the tab navigator project builds and get the same error.

#5

Hello, I guess I am facing the same problem, except the message is:

Cannot find entry file main.js in any of the roots: ...

I followed the steps on the docs https://docs.expo.io/versions/latest/sdk/register-root-component.html

My package.json is:

{
"name": "open-wallet-app",
"version": "0.0.0",
"description": "iOS app to consume the Open Wallet API",
"author": "Willian Haas",
"private": true,
"main": "node_modules/expo/AppEntry.js",
"repository": {
"type": "git",
"url": "git+https://github.com/haaswill/open-wallet-app.git"
},
"dependencies": {
"axios": "^0.16.2",
"expo": "^19.0.0",
"numeral": "^2.0.6",
"prop-types": "^15.5.10",
"react": "16.0.0-alpha.12",
"react-native": "https://github.com/expo/react-native/archive/sdk-19.0.0.tar.gz",
"react-native-elements": "^0.12.2",
"react-navigation": "^1.0.0-beta.11",
"react-redux": "^5.0.5",
"redux": "^3.6.0",
"redux-persist": "^4.8.0",
"redux-thunk": "^2.2.0"
},
"devDependencies": {
"eslint-config-rallycoding": "^3.2.0"
}
}

My App.js is:

import React from 'react';
import { Provider } from 'react-redux';
import store from './config/store';
import AppWithNavigationState from './navigators/AppNavigator';

export default class App extends React.Component {
render() {
return (
<Provider store={store}>
<AppWithNavigationState />
</Provider>
);
}
}

Running on macOS Sierra 10.12.5
Expo Client: 1.18.2
Expo XDE 2.19.3
Node Version: 8.1.4
Watchman: 4.7.0

#6

In case it helps anybody in the future, I got this issue when I renamed my project directory (from camelcase to lowercase) on Mac and didn’t re-open the project in Expo XDE with the new case.

2 Likes
#7

Yep - Closing an re-opening the project seemed to do the trick in my case also. Thanks!

1 Like