Which @angular/* package(s) are the source of the bug?
core, platform-browser
Is this a regression?
No
Description
In non standalone world it was possible to catch errors during bootstrap by catching rejected promise returned by bootstrapModule method. Trying to do the same in the standalone version, it doesn't work anymore. Errors are ignored somehow, and promise returned by bootstrapApplication never rejects.
Important to note is that this behavior is only happening when module is used within importProvidersFrom function.
Please uncomment line 27-29 to see the problem, catch callback is never executed. It is executed when module is imported inside a component's imports array.
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/angular-dc8jfe?file=src/main.ts
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run ng version)
stackblitz has all information.
Anything else?
No response
Which @angular/* package(s) are the source of the bug?
core, platform-browser
Is this a regression?
No
Description
In non standalone world it was possible to catch errors during bootstrap by catching rejected promise returned by
bootstrapModulemethod. Trying to do the same in the standalone version, it doesn't work anymore. Errors are ignored somehow, and promise returned bybootstrapApplicationnever rejects.Important to note is that this behavior is only happening when module is used within
importProvidersFromfunction.Please uncomment line 27-29 to see the problem,
catchcallback is never executed. It is executed when module is imported inside a component's imports array.Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/angular-dc8jfe?file=src/main.ts
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version)Anything else?
No response