Comments (10)
perhaps @szymonrybczak can help with that?
from repack.
Hey @datdt-026,
I can launch the app normally both through CLI & XCode without any issues.
One thing I needed to fix was to add
react-freeze
to transformednode_modules
inwebpack.config
. Also the app was missing some modules which you removed, so after adding the rule and commenting out the missing modules in source code I was able to get everything running smoothly.I've also noticed that your start command does not pass
port
argument properly:"start": "react-native webpack-start --host 127.0.0.1 -- port 8081"
as there is a unnecessary space between
--
andport
. But it still defaults to port 8081 so it doesn't matter in this case.
OMG, i run it successfully.
I upgrade the callstack/repack
to 3.6.0
and run with --host with wifi IP.
Thank you so much, Merry Xmas and Happy New Year! <3
from repack.
Hi @datdt-026,
are you sure you've used webpack-start
command everytime? This kind of error usually happens when you bundle with metro
instead of webpack
by mistake. If this is not the case, please provide a reproduction repository so I can help see what's wrong with your setup, thanks!
from repack.
yes i've change the script start with webpack-start --host --port
, i run on xcode and it auto show up the metro
instead of webpack
, i stop the metro
, start with webpack
and it show another error with yarn
like this.
from repack.
You can remove the build phase witch starts the metro server in development in XCode to get rid of this. However, since you also start Re.Pack you should be just fine with clicking on Reload JS
on the simulator.
Another thing that comes to my mind is that if you don't use the default port of 8081
, and you want to run the app through XCode it might require changing in some place. I'm not sure where to change it in XCode (i'll get back to you on that), but when running iOS through CLI, you should also pass --port
, and that should match the port used with webpack-start
.
from repack.
I'm using the default port 8081
. When i stop metro
, start webpack
, it show the error with the images above.
I reloadJS on my device and it show that.
Here is my repo: https://github.com/datdo26/meid_app
Thank you for seeing what's wrong in my setup.
from repack.
Hey @datdt-026,
I can launch the app normally both through CLI & XCode without any issues.
One thing I needed to fix was to add react-freeze
to transformed node_modules
in webpack.config
. Also the app was missing some modules which you removed, so after adding the rule and commenting out the missing modules in source code I was able to get everything running smoothly.
I've also noticed that your start command does not pass port
argument properly:
"start": "react-native webpack-start --host 127.0.0.1 -- port 8081"
as there is a unnecessary space between --
and port
. But it still defaults to port 8081 so it doesn't matter in this case.
from repack.
@jbroma, Is there any way for the debbuger, I always using react-native-debbuger to debug the project and see the network activity.
from repack.
This issue has been marked as stale because it has been inactive for 30 days. Please update this issue or it will be automatically closed in 14 days.
from repack.
This issue has been automatically closed because it has been inactive for more than 14 days. Please reopen if you want to add more context.
from repack.
Related Issues (20)
- Facing issue while implementing Offline Bundling. HOT 8
- Error in bundling micro apps with react-native-svg packages HOT 3
- [RFC] Override `start` command in `react-native.config.js` HOT 10
- Unhandled error in Webpack Compiler when doing `rpm run ios` HOT 2
- Cannot Resole React Hook Form correctly HOT 10
- repack monorepo deployment help
- Android is crashing when "onMessage" props is accessed in "react-native-webview" library HOT 1
- [RFC] sync API HOT 14
- Improve types for `prefetchScript` and `loadScript` HOT 6
- Is it possible to load a remote module before it is requested by the user?
- callstack_repack-Swift.h file not found HOT 18
- Repack app fails with "could not find react-redux context value" for the latest versions of react-redux and @reduxjs/toolkit HOT 3
- Property 'HMRClient' doesn't exist HOT 4
- Challenge Integrating Repack in React Native Mono Repo: App1 Loads Successfully, App2 Fails to Load from Server Bundles HOT 3
- Extract runtime into separate package in monorepo & publish it separately HOT 4
- Migrate ObjC code parts to Swift HOT 5
- How do i use react-native-gesture-handler in both my mini app and host app? HOT 5
- Repack Navigation From Mini App To Main APP HOT 3
- Adopt the new federation runtime HOT 5
- A clear working example of how code signing works with repack HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from repack.