-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
0.63 upgrade results in a bundle that never finishes building #29351
Comments
A little more info - this has something to do with a custom metro transformer I have written to do localization. Even if I reduce it to this:
It will hang. |
I'm also facing issues with the bundler on 0.63 in two projects, but it might be a slightly different issue because I'm promptly getting errors while bundling for release. One is a yarn workspaces / Lerna monorepo, but the other is not. Both use The closest I've found to what I'm experiencing is being discussed in this StackOverflow question, in case any of this is useful for you. |
Change your babel.config.js to .babelrc.js and it will work |
I have the same issue to @ioveracker's, not sure it's the same as the original issue of this thread though. With 0.63 and So I did a temporary quick fix to add I don't know why this is happened, and hope will fix soon! |
@typester good call! That works! 🎉 To be clear, in my case, rather than patch
|
same, in my case bundler can't resolve files with absolute path, but it works on 0.62.2, weird |
I'm also using
|
Unfortunately, |
I have this issue while archiving app in XCode for distribution to AppStore. When I'm in debug mode - everything works fine. |
@todorone This version worked for us with Sentry using the workaround @typester previously mentioned; cd $PROJECT_DIR/..
export SENTRY_PROPERTIES=ios/sentry.properties
export NODE_BINARY=$(which node)
./node_modules/@sentry/cli/bin/sentry-cli react-native xcode ./node_modules/react-native/scripts/react-native-xcode.sh |
I confirm that @typester suggestion works but there are plans for a definitive fix? |
@maxvw I tried your solution but i have the following error: in Build Phase Bundle React Native code and images i have this: |
Make sure |
@maxvw Thank you very much, your suggestion resolved my issue. |
Still having this issue. Changing the code to:
Doesn't seem to work. Anyone with another solution? 🤔 Edit: Okay I've resolved the issue by
|
@rnnyrk oof, that must have been fun to track down. Heads up: the React Native docs on using TypeScript recommend leaving
I don't know if there will be other problems beyond bundling, but thought I'd toss that out there. 🤷♂️ |
@ioveracker Thanks for the heads up about this one. I dind't know about it and never ran into the docs page. Will revert since it, indeed, doesn't add any value to make the index file ts |
this worked perfectly. |
None of the above fixed it for me on 0.63, but it works with this PR #29477 |
Or you can change the 'Bundle React Native code and images' with |
not working for me :( |
for anyone using RN 0.63.4 got this error. |
My project is in rn0.63.4 and cocoapods v1.10.0, after I upgrade pod, it happened always and not fixed with above suggestion. If someone knows how to fix, very appreciate. |
Thank you so much @rnnyrk . |
@vadim312 have you solved the problem? I'm having the same problem. |
I downgraded from Cocoapods 1.10.1 to 1.10.0 and this fixed it for me. (using RN 0.63.3) To remove your current cocoapods version you could just run: you can install a specific version of cocoapods via the following command:
Used script in xCode:
Hope this helps someone! |
Thank you all so much for contributing to this thread. I found that when using Sentry sourcemaps with this I was stuck on this minor annoyance for hours. Fortunately, upgrading to 0.63.4 fixed everything. If you're using |
You can try my solution first, it might be an issue about node versioning |
well, for anybody that got that error this is how I fixed it. When you try to archive your app in xCode and you get a build error saying something like if you start to look a couple of lines above you get this What that means is that it can't locate the here is the fix xCode -> build Phases -> Bundle react native code and images
After that it is just to add your own path and it will work Image for reference |
Might be related to an issue here: aeirola/react-native-svg-asset-plugin#73 |
I was able to fix the bug by changing the project.pbxproj "Build Phases -> Bundle React Native code and images" to
I found this script when generating a new project with the expo. It should be updated but it seems missing in the documentation when upgrading to EXPO 43. |
Sorry wrong thread |
As suggested on This answer
To build phases -> Bundle React Native code and images |
If you are using a shim.js I was able to solve it with this comment from a very good man <3 @DDushkin |
it stopped working after cloning the project....... it works on the old one but runninng Archieve command is beeing tthrown the same exception...... Why????? |
Adding the main.jsbundle file to the copy bundle ressource folder did the trick for me as well as the other fix mention above with
|
The `react-native-dotenv` set up did not work where it couldnt find @env like the documentation says to use Instead used babel-blugin-inline-dotenv described in this stackoverflow post: https://stackoverflow.com/questions/57060316/environment-variables-in-babel-config-js This was the `react-native-dotenv` recommended solution that did not work for me facebook/react-native#29351 (comment)
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
Please provide all the information requested. Issues that do not follow this format are likely to stall.
Description
I can no longer build a react bundle, it gets to "Done copying assets" and then never finishes.
React Native version:
Steps To Reproduce
I'm not sure I can reliably repro this, so I probably need some steps that might yield more data. But I run this:
Also, in case it's relevant, I have a monorepo setup with yarn workspaces and lerna.
Expected Results
A bundle should be produced in something less than an hour, which is how long I waited...
The text was updated successfully, but these errors were encountered: