Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AOT build fails with @angular/material 2.0.0-beta.10 and nz 0.5.0? #290

Closed
encool opened this issue Sep 14, 2017 · 2 comments
Closed

AOT build fails with @angular/material 2.0.0-beta.10 and nz 0.5.0? #290

encool opened this issue Sep 14, 2017 · 2 comments

Comments

@encool
Copy link

encool commented Sep 14, 2017

I'm submitting a...


[x] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Support request => Please do not submit support request here

Current behavior

ng2-easyform是自己的工具模块,主项目使用了其中导出的两个angular module。
其中一个是exports 0.5.0版本的 nz modules
另一个exports 2.0.0-beta.10 版本的 angular material modules。
ng build -w -aot 报如下错误。不用aot则不报错。

ERROR in F:/angular2/ng2seed/src/$$_gendir/node_modules/ng2-easyform/node_modules/ng-zorro-antd/index.ngfactory.ts (164,18):
Property 'PlatformModule' does not exist on type 'typeof "F:/angular2/ng2seed/node_modules/@angular/cdk/cdk"'.
ERROR in F:/angular2/ng2seed/src/$$_gendir/node_modules/ng2-easyform/node_modules/ng-zorro-antd/node_modules/@angular/cdk/typ
ings/index.ngfactory.ts (13,56): Namespace '"F:/angular2/ng2seed/node_modules/@angular/cdk/cdk"' has no exported member 'A11y
Module'.
ERROR in F:/angular2/ng2seed/src/$$_gendir/node_modules/ng2-easyform/node_modules/ng-zorro-antd/node_modules/@angular/cdk/typ
ings/index.ngfactory.ts (17,85): Property 'Platform' does not exist on type 'typeof "F:/angular2/ng2seed/node_modules/@angula
r/cdk/cdk"'.
ERROR in F:/angular2/ng2seed/src/$$_gendir/node_modules/ng2-easyform/node_modules/ng-zorro-antd/node_modules/@angular/cdk/typ
ings/index.ngfactory.ts (18,14): Property 'Platform' does not exist on type 'typeof "F:/angular2/ng2seed/node_modules/@angula
r/cdk/cdk"'.
ERROR in F:/angular2/ng2seed/src/$$_gendir/node_modules/ng2-easyform/node_modules/ng-zorro-antd/node_modules/@angular/cdk/typ
ings/index.ngfactory.ts (18,54): Property 'InteractivityChecker' does not exist on type 'typeof "F:/angular2/ng2seed/node_mod
ules/@angular/cdk/cdk"'.
ERROR in F:/angular2/ng2seed/src/$$_gendir/node_modules/ng2-easyform/node_modules/ng-zorro-antd/node_modules/@angular/cdk/typ
ings/index.ngfactory.ts (18,78): Property 'InteractivityChecker' does not exist on type 'typeof "F:/angular2/ng2seed/node_mod
ules/@angular/cdk/cdk"'.
ERROR in F:/angular2/ng2seed/src/$$_gendir/node_modules/ng2-easyform/node_modules/ng-zorro-antd/node_modules/@angular/cdk/typ
ings/index.ngfactory.ts (19,15): Property 'Platform' does not exist on type 'typeof "F:/angular2/ng2seed/node_modules/@angula
...

Expected behavior

No errors

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Environment


@angular/cli: 1.4.2
node: 6.11.2
os: win32 x64
@angular/animations: 4.3.6
@angular/cdk: 2.0.0-beta.10
@angular/common: 4.3.6
@angular/compiler: 4.3.6
@angular/core: 4.3.6
@angular/flex-layout: 2.0.0-beta.9
@angular/forms: 4.3.6
@angular/http: 4.3.6
@angular/material: 2.0.0-beta.10
@angular/platform-browser: 4.3.6
@angular/platform-browser-dynamic: 4.3.6
@angular/router: 4.3.6
@angular/cli: 1.4.2
@angular/compiler-cli: 4.3.6
@angular/language-service: 4.3.6
@encool encool changed the title AOT@angular/material 2.0.0-beta.10 and AOT build fails with @angular/material 2.0.0-beta.10 and nz 0.5.0? Sep 14, 2017
@vthinkxie
Copy link
Member

package version conflict, will be resolved when cdk upgrade.

@wilsoncook wilsoncook self-assigned this Sep 16, 2017
wilsoncook added a commit to wilsoncook/ng-zorro-antd that referenced this issue Oct 8, 2017
wilsoncook added a commit to wilsoncook/ng-zorro-antd that referenced this issue Oct 14, 2017
BREAKING CHANGE: 1. usage related to cdk is changed 2. @angular version dependence update to ^4.4.3 (due to @angular/cdk)

close NG-ZORRO#238, close NG-ZORRO#290
wilsoncook added a commit to wilsoncook/ng-zorro-antd that referenced this issue Oct 21, 2017
BREAKING CHANGE: 1. usage related to cdk is changed 2. @angular version dependence update to ^4.4.3 (due to @angular/cdk)

close NG-ZORRO#238, close NG-ZORRO#290
@lock
Copy link

lock bot commented Feb 19, 2019

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Feb 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants