Closed james-br closed 2 years ago
@james-br Thanks for the report. This is a problem with the example itself, not WebContainer. The specified dependencies do not work well together: I get the same error if I download the code and run it locally.
For bystanders: we filed https://github.com/angular/angular/issues/44480
Describe the bug
Generating browser application bundles (phase: setup)...(node:6) UnhandledPromiseRejectionWarning: Error: The Angular Compiler requires TypeScript >=4.4.2 and <4.5.0 but 4.5.3 was found instead. at checkVersion (file:///home/projects/phhihs--run/node_modules/@angular/compiler-cli/bundles/index.js:17524:11) at verifySupportedTypeScriptVersion (file:///home/projects/phhihs--run/node_modules/@angular/compiler-cli/bundles/index.js:17528:3) at new NgtscProgram (file:///home/projects/phhihs--run/node_modules/@angular/compiler-cli/bundles/index.js:17678:7) at AngularWebpackPlugin.updateAotProgram (/home/projects/phhihs--run/node_modules/@ngtools/webpack/src/ivy/plugin.js:321:32) at eval (/home/projects/phhihs--run/node_modules/@ngtools/webpack/src/ivy/plugin.js:198:24) at Hook.eval [as call] (eval at _0x53a6f5 (https://phhihs--run.w.staticblitz.com/blitz.c1a2f33ebdb80ec1573b6337c828d176e80f0398.js:11:220541),:20:1)
at Hook.CALL_DELEGATE [as _call] (/home/projects/phhihs--run/node_modules/tapable/lib/Hook.js:14:14)
at Compiler.newCompilation (/home/projects/phhihs--run/node_modules/webpack/lib/Compiler.js:1054:30)
at eval (/home/projects/phhihs--run/node_modules/webpack/lib/Compiler.js:1099:29)
at eval (eval at _0x53a6f5 (https://phhihs--run.w.staticblitz.com/blitz.c1a2f33ebdb80ec1573b6337c828d176e80f0398.js:11:220541), :31:1)
(Use
node --trace-warnings ...
to show where the warning was created) (node:6) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:6) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.Link to the blitz that caused the error
https://angular.io/generated/live-examples/getting-started-v0/stackblitz.html
Steps to reproduce
access the website
Expected behavior
it should load application succcefully
Screenshots
No response
Platform
Additional context
No response