-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
needs: verificationA member of the team needs to verify whether this issue is fixedA member of the team needs to verify whether this issue is fixed
Description
Bug, feature request, or proposal:
Bug
What is the expected behavior?
mat-sidenav should Initialize without error
What is the current behavior?
Using target: es5 everything works normal (using --prod --aot --build-optimizer and in dev mode)
When target is set to es2015 error is thrown:
Cannot read property 'create' of undefined
at MatSidenav.ngAfterContentInit (sidenav.js:268)
at callProviderLifecycles (core.js:10333)
at callElementProvidersLifecycles (core.js:10310)
at callLifecycleHooksChildrenFirst (core.js:10294)
at checkAndUpdateView (core.js:11422)
at callViewAction (core.js:11769)
at execComponentViewsAction (core.js:11701)
at checkAndUpdateView (core.js:11425)
at callWithDebugContext (core.js:12592)
at Object.debugCheckAndUpdateView [as checkAndUpdateView] (core.js:12182)
What are the steps to reproduce?
<mat-sidenav-container class="view" fxLayout="column" >
<mat-sidenav #leftsidenav (opened)="onLeftOpened($event)"
(closed)="onLeftClosed($event)" class="left" position="start" mode="over">
<ui-view name="left"></ui-view>
</mat-sidenav>
</mat-sidenav-container>
What is the use-case or motivation for changing an existing behavior?
To work using target: es2015
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular CLI: 1.5.0
Node: 8.7.0
OS: linux x64
Angular: 5.0.0
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
@angular/cdk: 5.0.0-rc0
@angular/cli: 1.5.0
@angular/flex-layout: 2.0.0-beta.10-4905443
@angular/material: 5.0.0-rc0
@angular-devkit/build-optimizer: 0.0.32
@angular-devkit/core: 0.0.20
@angular-devkit/schematics: 0.0.35
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.0
@schematics/angular: 0.1.1
typescript: 2.4.2
webpack-bundle-analyzer: 2.9.0
webpack: 3.8.1
Is there anything else we should know?
no
SaturnTeam and byrondover
Metadata
Metadata
Assignees
Labels
needs: verificationA member of the team needs to verify whether this issue is fixedA member of the team needs to verify whether this issue is fixed