Skip to content
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

Issue with node v22.0.0 #595

Closed
HebertGB opened this issue May 3, 2024 · 4 comments · Fixed by #596
Closed

Issue with node v22.0.0 #595

HebertGB opened this issue May 3, 2024 · 4 comments · Fixed by #596
Assignees
Labels
area:repack The issue is about logic/code inside of Re.Pack. status:confirmed The issue has been reviewed and all necessary information is provided. type:bug A bug report.

Comments

@HebertGB
Copy link

HebertGB commented May 3, 2024

Environment

node 22.0.0
repack 3.7.0 also in 4.0.0-rc.2
react-native 0.74.1
macos ventura 13.6.1
xcode 15.0.1

Description

Can´t build app using node v22.0.0. Work´s fine if switch to node 20.0.0 (using nvm). The same problem on Android. Both tests are on real devices.

I tried a clean and empty new project and have the same problem.

[DevServer] Server listening at http://192.168.18.175:8081 
[DevServer] GET 200 /status request completed { responseTime: 5.667741000652313 } 
[LoggerPlugin] Compiling ios: 3% setup (watch run) 
[LoggerPlugin] Compiling ios: 23% building (2/8 entries 100/164 dependencies 4/80 modules) 
[LoggerPlugin] Compiling ios: 23% building (2/8 entries 794/900 dependencies 82/296 modules) 
[LoggerPlugin] Compiling ios: 30% building (3/8 entries 1364/1468 dependencies 160/364 modules) 
[LoggerPlugin] Compiling ios: 30% building (3/8 entries 1580/1680 dependencies 200/436 modules) 
[LoggerPlugin] Compiling ios: 30% building (3/8 entries 1827/1900 dependencies 242/503 modules) 
[LoggerPlugin] Compiling ios: 30% building (3/8 entries 2639/2668 dependencies 493/600 modules) 
node:internal/event_target:1096
  process.nextTick(() => { throw err; });
                           ^

Error [ERR_UNHANDLED_ERROR]: Unhandled error. ({})
    at Compiler.emit (node:events:509:17)
    at Worker.<anonymous> (/Users/hebert/App/AwesomeProject/node_modules/@callstack/repack/dist/webpack/Compiler.js:97:14)
    at Worker.emit (node:events:520:28)
    at MessagePort.<anonymous> (node:internal/worker:263:53)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:822:20)
    at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) {
  code: 'ERR_UNHANDLED_ERROR',
  context: {}
}
@anhlh36
Copy link

anhlh36 commented May 6, 2024

i have same issue. Anyone has any solution?

@jbroma jbroma self-assigned this May 6, 2024
@jbroma jbroma added status:investigating The issue needs more research and information. area:repack The issue is about logic/code inside of Re.Pack. labels May 6, 2024
@jbroma jbroma added status:confirmed The issue has been reviewed and all necessary information is provided. type:bug A bug report. and removed status:investigating The issue needs more research and information. labels May 6, 2024
@jbroma
Copy link
Member

jbroma commented May 6, 2024

Thanks for the report!

Fix merged, will be available later this week.

@HebertGB
Copy link
Author

HebertGB commented May 6, 2024

Thanks for the report!

Fix merged, will be available later this week.

Thanks for your prompt support!

@HebertGB
Copy link
Author

HebertGB commented May 6, 2024

i have same issue. Anyone has any solution?

While the fix not merged to main project you can switch to any older node version. If using nvm this is very simple as "nvm use 20.0.0" ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:repack The issue is about logic/code inside of Re.Pack. status:confirmed The issue has been reviewed and all necessary information is provided. type:bug A bug report.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants