Coder Social home page Coder Social logo

Comments (2)

jfgaudreault-p avatar jfgaudreault-p commented on July 22, 2024

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.

jbroma avatar jbroma commented on July 22, 2024

hi @thomasreiser

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.