Error: webpack exited with an unexpected code: 1

Hey everyone , While installing theia I am getting the following error, I am not sure where I am doing anything wrong.

Failed to resolve module: @theia/electron
webpack 5.82.0 compiled with 1 error in 2870 ms
 Error: webpack exited with an unexpected code: 1.
  at ChildProcess.<anonymous> (/home/ubuntu/theia/node_modules/@theia/application-manager/lib/application-process.js:66:28)
   at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1091:16)
    at ChildProcess._handle.onexit (node:internal/child_process:302:5)
 error Command failed with exit code 1.
   info Visit for documentation about this command.
 Provisioning step had errors: Running the cleanup provisioner, if present...
 Deleting output directory...

I am using node16 as mentioned in prerequisite

@oshi thank you for the discussion, are you attempting to build a browser application based on Theia? If so you may be encountering regression: unable to build browser-only application · Issue #12490 · eclipse-theia/theia · GitHub which has been fixed but will be part of the next release. In the meantime you can use version 1.36.0 of Theia depedencies.

Also related: Failed to resolve module: @theia/electron - #12 by vince-fugnitto

hi @vince-fugnitto , Thank you for your repsonse.I have tried ‘1.36.0’ version and it is working .Thank you once again.

Just an FYI, a patch release v1.37.1 was released to fix the regression :+1: