-
Notifications
You must be signed in to change notification settings - Fork 477
Metro bundler process exited with code 1 #1407
Comments
Go node_modules/metro-config/defaults/backlist.js and replace this line: var sharedBlacklist = [
/node_modules[/\\]react[/\\]dist[/\\].*/,
/website\/node_modules\/.*/,
/heapCapture\/bundle\.js/,
/.*\/__tests__\/.*/
]; to this: var sharedBlacklist = [
/node_modules[\/\\]react[\/\\]dist[\/\\].*/,
/website\/node_modules\/.*/,
/heapCapture\/bundle\.js/,
/.*\/__tests__\/.*/
]; |
@Shair17 I don't have a node_modules/metro-config/defaults? |
Make sure you have a correct package.json, then run |
@Shair17 But now I get a new error: C:\Users\Michael\hcreacttest>yarn start |
@Shair17 I don't know how to make sure I have the correct package.json?? |
@Kramraes1 run |
Hi-- Sorry you ran into this. It looks like this has been fixed by @fson in this change to metro-config facebook/metro#468 but it might take a little bit of time for this fix to get put into a RN release and make its way into Expo. In the short term, at a galnce without having tested it myself, the comment above describes a reasonable way to manually patch your installation. Closing this for now since this is already fixed upstream. |
@ccheever So, what am I supposed to do now?
How do I verify my package.json, and how do I know that all the dependencies are there? I found the src folder and changed the "sharedBlacklist" but I get a new error now:
|
\node_modules\metro-config\src\defaults\blacklist.js |
@AsadAftab-Nust - on sdk38 or what? we need more information |
@AsadAftab-Nust and @Kramraes1 - make sure you're using the latest version of expo-cli please. |
Hi people, to give a bit more context when this was fixed and why it still pops up:
Now, this issue is also related to certain Node 12.x.x versions (as described in the PR from @fson) and makes it even harder to reproduce. If it works for you without Ville's fix, it's most likely related to a patched Node version. What can you do if this happens to you?
If that fails, check which versions of metro you are using with Hope this helps! |
Thanks @Shair17, |
Hello, I hope you can help me :) I am total new to building apps and react native, but tried to follow the "getting started" instructions on https://facebook.github.io/react-native/docs/getting-started.html.
Thanks in advance,
Pia
Description
My problem is when I try running the app with "yarn start" after "yarn global add expo-cli" (yarn v1.21.1, [email protected]), "expo init appname" and "cd appname" I get an error: "Metro Bundler process exited with code 1"
Expected Behavior
I typed:
"yarn global add expo-cli"
"expo init hcreacttest"
"cd hcreacttest"
"yarn start"
and expected to get connected to Localhost:19002 (as I did a few months ago).
Observed Behavior
Environment
C:\Users\Michael\hcreacttest>expo diagnostics
[19:24:51] Generating diagnostics report...
[19:24:51] You can join our slack here: https://slack.expo.io/.
Expo CLI 3.11.3 environment info:
System:
OS: Windows 10
Binaries:
Yarn: 1.21.1 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.13.4 - C:\Program Files\nodejs\npm.CMD
Diagnostics report:
[19:25:54] API Response Error: Not logged in.
Reproducible Demo
"yarn global add expo-cli"
"expo init hcreacttest"
"cd appname"
"yarn start"
The text was updated successfully, but these errors were encountered: