Skip to content
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

npm run start -- --root $JS_DIR failed #4035

Closed
sapphirezzz opened this issue Nov 10, 2015 · 3 comments
Closed

npm run start -- --root $JS_DIR failed #4035

sapphirezzz opened this issue Nov 10, 2015 · 3 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@sapphirezzz
Copy link

Zack:react-native double$ pwd
/Users/double/Desktop/mooyoo_github/Meijiabang/meijiabang-ios/code/node_modules/react-native
Zack:react-native double$ npm run start -- --root /Users/double/Desktop/mooyoo_github/Meijiabang/meijiabang-ios/code/ReactComponent/

react-native@0.14.2 start /Users/double/Desktop/mooyoo_github/Meijiabang/meijiabang-ios/code/node_modules/react-native
./packager/packager.sh || true "--root" "/Users/double/Desktop/mooyoo_github/Meijiabang/meijiabang-ios/code/ReactComponent/"

┌────────────────────────────────────────────────────────────────────────────┐
│ Running packager on port 8081. │
│ │
│ Keep this packager running while developing on any JS projects. Feel │
│ free to close this tab and run your own packager instance if you │
│ prefer. │
│ │
https://github.com/facebook/react-native
│ │
└────────────────────────────────────────────────────────────────────────────┘
Looking for JS files in
/Users/double/Desktop/mooyoo_github/Meijiabang/meijiabang-ios/code

[16:31:25] Building Dependency Graph
[16:31:25] Crawling File System
[16:31:25] Loading bundles layout
[16:31:25] Loading bundles layout (0ms)

React packager ready.

[16:31:28] Crawling File System (2829ms)
[16:31:28] Building in-memory fs for JavaScript
[16:31:29] Building in-memory fs for JavaScript (579ms)
[16:31:29] Building Haste Map
Error building DepdendencyGraph:
Error: Naming collision detected: /Users/double/Desktop/mooyoo_github/Meijiabang/meijiabang-ios/code/node_modules/react-tools/src/renderers/shared/event/eventPlugins/ResponderSyntheticEvent.js collides with /Users/double/Desktop/mooyoo_github/Meijiabang/meijiabang-ios/code/node_modules/react-native/node_modules/react-tools/src/renderers/shared/event/eventPlugins/ResponderSyntheticEvent.js
at HasteMap._updateHasteMap (/Users/double/Desktop/mooyoo_github/Meijiabang/meijiabang-ios/code/node_modules/react-native/packager/react-packager/src/DependencyResolver/DependencyGraph/HasteMap.js:123:13)
at /Users/double/Desktop/mooyoo_github/Meijiabang/meijiabang-ios/code/node_modules/react-native/packager/react-packager/src/DependencyResolver/DependencyGraph/HasteMap.js:95:28
at tryCallOne (/Users/double/Desktop/mooyoo_github/Meijiabang/meijiabang-ios/code/node_modules/react-native/node_modules/promise/lib/core.js:37:12)
at /Users/double/Desktop/mooyoo_github/Meijiabang/meijiabang-ios/code/node_modules/react-native/node_modules/promise/lib/core.js:103:15
at flush (/Users/double/Desktop/mooyoo_github/Meijiabang/meijiabang-ios/code/node_modules/react-native/node_modules/asap/raw.js:50:29)
at doNTCallback0 (node.js:428:9)
at process._tickCallback (node.js:357:13)

@jpapillon
Copy link

I have the same issue with react-native 0.13.0. @sapphirezzz: What version of node are you using?

@jpapillon
Copy link

@sapphirezzz : Check my comment on this issue.

@sapphirezzz
Copy link
Author

@jpapillon Mine is v5.0.0 . I have fixed this by using (JS_DIR=pwd; cd node_modules/react-native; npm run start -- --root $JS_DIR) . I put the .js file and node_modules in current folder .

@facebook facebook locked as resolved and limited conversation to collaborators Jul 20, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants