Comments (2)
I am also getting the same error message issue when trying to run the host app of the repack-examples
/module-federation project.
I am on linux and running the Android app, and the Bundling inside the app goes up to 98% then I get this error.
~/repack-examples/module-federation$ yarn start:host
ℹ [21:12:55.796Z][DevServer] Server listening at http://127.0.0.1:8081
ℹ [21:13:06.816Z][DevServer] Hermes device connected { deviceId: 0 }
ℹ [21:13:06.853Z][DevServer] GET 200 /status request completed { responseTime: 2.2725499998778105 }
ℹ [21:13:07.005Z][WebpackCompilerWorker] {
bundleFilename: '',
context: '/home/user/repack-examples/module-federation/host',
reactNativePath: '/home/user/repack-examples/module-federation/host/node_modules/react-native',
mode: 'development',
platform: 'android',
devServer: { port: 8081, host: '', https: undefined, hmr: true }
}
ℹ [21:13:07.208Z][DevServer] Successfully run: /home/user/Android/Sdk/platform-tools/adb reverse tcp:8081 tcp:8081
⇢ [21:13:07.200Z][LoggerPlugin] Compiling android: 3% setup (watch run)
⇢ [21:13:08.413Z][LoggerPlugin] Compiling android: 28% building (3/6 entries 100/300 dependencies 9/71 modules)
⇢ [21:13:10.643Z][LoggerPlugin] Compiling android: 46% building (4/6 entries 1197/1265 dependencies 94/335 modules)
⇢ [21:13:13.763Z][LoggerPlugin] Compiling android: 46% building (4/6 entries 1900/1989 dependencies 273/425 modules)
⇢ [21:13:15.444Z][LoggerPlugin] Compiling android: 62% building (24/25 entries 2501/2502 dependencies 537/538 modules)
/home/user/repack-examples/module-federation/host/node_modules/metro-hermes-compiler/src/emhermesc.js:77
throw ex;
^
Error [ERR_UNHANDLED_ERROR]: Unhandled error. ({})
at Compiler.emit (node:events:508:17)
at Worker.<anonymous> (/home/user/repack-examples/module-federation/host/node_modules/@callstack/repack/dist/webpack/Compiler.js:110:14)
at Worker.emit (node:events:519:28)
at MessagePort.<anonymous> (node:internal/worker:263:53)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:822:20)
at exports.emitMessage (node:internal/per_context/messageport:23:28) {
code: 'ERR_UNHANDLED_ERROR',
context: {}
}
Node.js v21.6.1
I've very new to react-native, so just trying to get some pointers on where to go next and how to troubleshoot this.
EDIT: Switching to node 20.11.0 seems to have fixed this problem.
from repack.
I will not be able to determine the cause of this without a reproduction repository. As switching to newer node
version helped with similar issue, you might try doing that. In case you want to provide a reproduction repository, please also provide what node version you were using, thanks!
Since this issue is 2 months old I'll close it for now, but will reopen when reproduction repository is provided.
from repack.
Related Issues (20)
- Property SentryError doesnt exist HOT 3
- ChunkLoad Error HOT 5
- bundling mini-apps cause crashes HOT 20
- How to config webpack to reuse existing dependencies from the main bundle HOT 4
- How to debug blank screen issue with no error output? HOT 25
- Question: getting the error: "File assets/images/<imageName>@3x.png for ios not found in compilation assets" HOT 5
- ChunkManagerPackage: No value passed for parameter 'p6' HOT 11
- More control over file path and URL for remote assets HOT 14
- Module Federation host app not working [ScriptManager] failed to load script : [NetworkFailure] HOT 2
- Error: Unhandled error. ([ScriptManager] Failed to load script:) HOT 4
- Update docs related to Expo on Usage docs page HOT 1
- Error: Unhandled error. ([ScriptManager] Failed to load script:) HOT 1
- [webpack-cli] RangeError: Maximum call stack size exceeded HOT 5
- Error : TypeError: Cannot read properties of undefined (reading 'forEach') HOT 7
- Error: no such file or directory, open '/Users/x/dev/client/packages/app/node_modules/react-native/Libraries/LogBox/Data/LogBoxData.js'" HOT 1
- Error: Property 'SHA1' doesn't exist when using otpauth library HOT 2
- add axios to repack app HOT 1
- aws-appsync issue HOT 6
- How to locate cause of Error: ENOENT: no such file or directory HOT 4
- build bundle mini app HOT 1
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.