-
Notifications
You must be signed in to change notification settings - Fork 238
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
ng-zorro-antd-mobile build报错 #563
Comments
@ccjhpu 请问是如何复现的? |
您好,我ng-zorro-antd-mobile的版本是1.0.0-beta.1,angular/cli 版本是 8.3.2, |
@fisherspy 您好,我ng-zorro-antd-mobile的版本是1.0.0-beta.1,angular/cli 版本是 8.3.2, |
@ccjhpu 你是build ng-zorro-antd-mobile组件库还是在你的项目里使用npm run build --aot, 能够在stackblitz提供代码demo |
@fisherspy 是在项目里面使用npm run build --aot报错,但是使用npm run build可以编译通过, |
@fisherspy |
@bcddh 有钉钉么?群里说一声,发个文件夹给我? |
通过 ng add ng-zorro-antd-mobile 会引发该问题,如果直接 npm install ng-zorro-antd-mobile --save不会出现该问题。原因在于采用schematics会在app module中依赖ng-zorro-antd-mobile module |
@fisherspy 真心感谢,我这边也可以啦,辛苦啦 |
使用 npm run build -- --prod --aot, 报错,
"ng-zorro-antd-mobile": "^1.0.0-beta.1",
"@angular/cli": "8.3.2",
报错如下
ERROR in node_modules/ng-zorro-antd-mobile/ng-zorro-antd-mobile.d.ts.ListComponent.html(6,48): : Cannot invoke an expression whose type lacks a call signature. Type 'string | Function | TemplateRef<any>' has no compatible call signa tures. node_modules/ng-zorro-antd-mobile/ng-zorro-antd-mobile.d.ts.ListComponent.html(18,48): : Cannot invoke an expression whose type lacks a call signature. Type 'string | Function | TemplateRef<any>' has no compatible call signatures.
The text was updated successfully, but these errors were encountered: