Comments (8)
https://github.com/OliverNi/react-native-app-nativepack
This can be used to reproduce the issue.
The TesterApp in the nativepack repo works for me as well. I also tried to extract to TesterApp to a separate project and changed nativepack to an external dependency and the issue was reproducible in that project as well.
It fails when evaluating the script in loadHmrUpdate so it's pretty difficult to debug.
if (globalEvalWithSourceUrl) {
globalEvalWithSourceUrl(script, null);
} else {
// Fails here
eval(script);
}
from repack.
https://github.com/NiuGuohui/nativepack-issue-29
This repo can be seen this issue.
from repack.
I think I got the fix for it. @OliverNi @NiuGuohui can you update @callstack/nativepack
to 1.4.2-beta.0
and check if the issue is gone? Also when testing keep in mind this limitation: https://github.com/callstack/nativepack#hot-module-replacement--react-refresh
from repack.
Can you post which React Native version you're using?
from repack.
Can you post which React Native version you're using?
0.64.0
from repack.
I had the same issue before when hermes was disabled.
Try setting enableHermes to true in android/app/build.gradle.
Here's what mine looks like:
project.ext.react = [
enableHermes: true,
bundleCommand: "webpack-bundle",
bundleInDebug: false
]
from repack.
Can someone create a repro project where this issue can be seen? In TesterApp the HMR works both with and without Hermes on Android.
from repack.
I think I got the fix for it. @OliverNi @NiuGuohui can you update
@callstack/nativepack
to1.4.2-beta.0
and check if the issue is gone? Also when testing keep in mind this limitation: https://github.com/callstack/nativepack#hot-module-replacement--react-refresh
Thank you, the issue has been eliminated.:smile:
from repack.
Related Issues (20)
- How can i run IOS device with repack? HOT 6
- Export of react component with additional attributes undefined HOT 7
- Hot Module Replacement is not working HOT 1
- Set AsyncStorage cause crash HOT 3
- File configurations.container.bundle for ios not found in compilation assets HOT 8
- Run android with error ERR_UNHANDLED_ERROR HOT 2
- Do containers that are not deployed independently need to set eager to true for react and react-native dependencies? HOT 4
- Happy for help: Getting the error "File artifacts/index.bundle for ios not found in compilation assets" HOT 11
- Question: do I need to add "ChunksToHermesBytecodePlugin" plugin? HOT 7
- Getting error "ReferenceError: Property 'CssSyntaxError' doesn't exist" while using styled-component. HOT 3
- [email protected] @callstack/repack/commands error HOT 3
- Can someone give me idea or tutorial how can i deploy my webpack bundle to local servers HOT 1
- Android Error when navigate Between MFEs HOT 9
- cannot load mini app(Module Federation) when verifyScriptSignature = 'strict' HOT 8
- Can't find variable: __wepack_require__ in ScriptManager.js HOT 10
- Unable to load script. Make sure you're either running Metro HOT 3
- Facing issue while implementing Offline Bundling. HOT 5
- Error in bundling micro apps with react-native-svg packages HOT 3
- [RFC] Override `start` command in `react-native.config.js` HOT 8
- Unhandled error in Webpack Compiler when doing `rpm run ios` HOT 2
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.