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
To run project using target: "es2015" in production mode without errors
What is the current behavior?
Project is built successfully but error is thrown in browser.
ng build --prod --build-optimizer false --aot false
main.3e9735c59cd97e9287dc.js:1 ERROR TypeError: Cannot read property 'runOutsideAngular' of undefined
at new C (main.3e9735c59cd97e9287dc.js:1)
at new S (main.3e9735c59cd97e9287dc.js:1)
at Lo (main.3e9735c59cd97e9287dc.js:1)
at To (main.3e9735c59cd97e9287dc.js:1)
at us (main.3e9735c59cd97e9287dc.js:1)
at Object.cs [as createEmbeddedView] (main.3e9735c59cd97e9287dc.js:1)
at ho.createEmbeddedView (main.3e9735c59cd97e9287dc.js:1)
at po.createEmbeddedView (main.3e9735c59cd97e9287dc.js:1)
at _t._updateView (main.3e9735c59cd97e9287dc.js:1)
at _t.set ngIf [as ngIf] (main.3e9735c59cd97e9287dc.js:1)
ng build
PrivateLayoutComponent.html:3 ERROR TypeError: Cannot read property 'runOutsideAngular' of undefined
at new MatDrawer (sidenav.js:174)
at new MatSidenav (sidenav.js:834)
at createClass (core.js:11927)
at createDirectiveInstance (core.js:11774)
at createViewNodes (core.js:13236)
at createEmbeddedView (core.js:13113)
at callWithDebugContext (core.js:14521)
at Object.debugCreateEmbeddedView [as createEmbeddedView] (core.js:13856)
at TemplateRef_.createEmbeddedView (core.js:11294)
at ViewContainerRef_.createEmbeddedView (core.js:11083)
What are the steps to reproduce?
Use angular+material2 using target:"es2015" , in development and production mode (wihout build-optimizer and aot)
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
Bug, feature request, or proposal:
Bug
What is the expected behavior?
To run project using
target: "es2015"
in production mode without errorsWhat is the current behavior?
Project is built successfully but error is thrown in browser.
ng build --prod --build-optimizer false --aot false
ng build
What are the steps to reproduce?
Use angular+material2 using
target:"es2015"
, in development and production mode (wihout build-optimizer and aot)Which versions of Angular, Material, OS, TypeScript, browsers are affected?
browser:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
ng -v output:
Is there anything else we should know?
I've checked #10567
The text was updated successfully, but these errors were encountered: