You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using ngtsc, together with the usual platformBrowserDynamic bootstrapping code causes a runtime error.
git clone https://github.com/alan-agius4/ivy-build-optimizer-issue.git
npm i
node_modules\.bin\ivy-ngcc
ng serve --prod
The log given by the failure
Runtime error
main.ts:12 Error: No ErrorHandler. Is platform module (BrowserModule) included?
at core.js.pre-build-optimizer.js:17333
at n.invoke (zone.js.pre-build-optimizer.js:388)
at Object.onInvoke (core.js.pre-build-optimizer.js:16856)
at n.invoke (zone.js.pre-build-optimizer.js:387)
at t.run (zone.js.pre-build-optimizer.js:138)
at t.run (core.js.pre-build-optimizer.js:16770)
at t.bootstrapModuleFactory (core.js.pre-build-optimizer.js:17328)
at core.js.pre-build-optimizer.js:17368
at n.invoke (zone.js.pre-build-optimizer.js:388)
at t.run (zone.js.pre-build-optimizer.js:138)
Desired functionality
No Error.
Mention any other details that might be useful
When turning off BuildOptimizer there are no runtime errors.
The text was updated successfully, but these errors were encountered:
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
Repro steps
When using
ngtsc
, together with the usualplatformBrowserDynamic
bootstrapping code causes a runtime error.The log given by the failure
Runtime error
Desired functionality
No Error.
Mention any other details that might be useful
When turning off BuildOptimizer there are no runtime errors.
The text was updated successfully, but these errors were encountered: