-
Notifications
You must be signed in to change notification settings - Fork 104
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
Documentation inconsistencies and errors migrating an existing RN app #62
Comments
This is probably a bug on our end. Can you let me know which version of Issues starting the bundlerError 1The Webpack config needs to know for which platform to generate the bundle and there are multiple ways to pass that infor to Error 2It should have been Bundler stuck at 10%Not sure why the issue is happening. I suspect Webpack has a problem on some files. It's difficult to debug what's the root cause so I recommend to create a repro project where the same issue can be observed. Android build fails due to kotlin error in repackLikely caused due to newer Kotlin version. repack does not start automatally on ios/android buildRunning Metro is hardcoded into the React Native CLI, so there's little we can do in that regard. The only option I see for the time being is to create custom Node.js script or bash script to run Re.Pack in separate terminal window and then run |
same error with @react-native-community/cli@5.0.1-alpha.1 |
I'm on 5.0.1-alpha.2 apparently.
I'm on 5.0.1-alpha.2 apparently. Not sure why. |
@dingziqi @scmarmol I've prepared a fresh project with RePack and it works for me with both CLI versions. |
Hm, also working for me. I guess something is wrong on my end, but I have yet to figure out what. |
The error:
got fixed in #80 The error:
should no longer be an issue as it was addressed in #75 If Webpack is stuck at 10% it's likely configuration error on your end. For troubleshooting I suggest to run |
Environment
I've had the same errors on M1 and intel Macs as well as Windows, on both ios simulators, android emulators, and iOS and android devices. For brevity I will post my latest general info.
OS: Mac 11.5.1 Big Sur, M1 chip
Device: iOS Simulator
Package manager: yarn v1 (no workspaces/symlinks)
Relevant versions:
Other info: I'm running all these commands from the VS Code integrated terminal. Never built from XCode/Android Studio.
Description
I've tried setting up both this and Haul a few times and never succeeded. I have an existing react native project that I try to set up repack with. I would just like to verify these are actual mistakes and not issues with my env.
Webpackconfig missing
repack/README.md
Line 120 in d6002af
My error:
My webpack.config.js is in the root, next to my package.json and such. Trying to pass the path to it as an argument doesn't seem to do anything.
Issues starting the bundler
repack/templates/webpack.config.js
Lines 15 to 18 in d6002af
Error 1:
Not sure what's up here. I am using the plain template from the repo for the webpack config. More fallbacks need to be set up I guess?
Error 2
Running
npx react-native start
as the first line suggests just started the metro bundler for me.Bundler stuck at 10%
So now that I have the bundler running, I connect my iOS emulator and it just seems to get stuck. Stays there forever, or at least for several hours.
I also had this issue before Hermes was enabled.
Android build fails due to kotlin error in repack
I hadn't seen this one before. New issue? My Gradle is 6.2. Build config is debug.
Some relevant looking versions from my gradle files:
repack does not start automatally on ios/android build
react-native run ios and react-native run android do not launch repack for me. The metro bundler still launches for me. I did make the native changes, or so I thought. Did I miss something?
Reproducible Demo
Have to go make one still. I don't suppose there's a sample project for repack somewhere?
The text was updated successfully, but these errors were encountered: