首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >angular 7生产构建失败

angular 7生产构建失败
EN

Stack Overflow用户
提问于 2018-11-29 16:05:13
回答 1查看 393关注 0票数 3

我创建了一个angular 7项目。在我的项目中添加了Ng-zorro。当使用ng服务进行开发时,一切都运行得很好。我使用以下命令添加了serviceworker:

代码语言:javascript
复制
ng add @angular/pwa

在我的tsconfig文件中,我添加了以下行:

代码语言:javascript
复制
"angularCompilerOptions": {
  "enableIvy": true
} 

使用ng serve或npm start时,一切运行正常。但是当我尝试ng build --prod时,它给出了以下错误:

代码语言:javascript
复制
ERROR in : Template parse errors:
The pipe 'nzI18n' could not be found ("down-menu-item ant-select-dropdown-menu-item-disabled">
    {{ nzNotFoundContent ? nzNotFoundContent[ERROR ->] : ('Select.notFoundContent' | nzI18n) }}
  </li>
  <li
"): /Volumes/Zotac 120GB/6sense/Projects/ngx-boilerplate/node_modules/ng-zorro-antd/ng-zorro-antd.d.ts.ɵbo.html@11:44
The pipe 'nzFilterOptionPipe' could not be found ("
    [nzMode]="nzMode"
    [compareWith]="compareWith"
    *ngFor="let op[ERROR ->]tion of listOfNzOptionComponent | nzFilterOptionPipe : nzSearchValue : nzFilterOption : nzServerSearc"): /Volumes/Zotac 120GB/6sense/Projects/ngx-boilerplate/node_modules/ng-zorro-antd/ng-zorro-antd.d.ts.ɵbo.html@24:18
The pipe 'nzSubFilterOptionPipe' could not be found ("
  </li>
  <li
    *ngFor="let g[ERROR ->]roup of listOfNzOptionGroupComponent | nzSubFilterOptionPipe : nzSearchValue : nzFilterOption : nzSer"): /Volumes/Zotac 120GB/6sense/Projects/ngx-boilerplate/node_modules/ng-zorro-antd/ng-zorro-antd.d.ts.ɵbo.html@31:17
The pipe 'nzFilterOptionPipe' could not be found ("
        [nzMode]="nzMode"
        [compareWith]="compareWith"
        *ngFor="let op[ERROR ->]tion of group.listOfNzOptionComponent | nzFilterOptionPipe : nzSearchValue : nzFilterOption : nzServe"): /Volumes/Zotac 120GB/6sense/Projects/ngx-boilerplate/node_modules/ng-zorro-antd/ng-zorro-antd.d.ts.ɵbo.html@46:22
The pipe 'nzFilterOptionPipe' could not be found ("
    [nzMode]="nzMode"
    [compareWith]="compareWith"
    *ngFor="let op[ERROR ->]tion of listOfTagOption | nzFilterOptionPipe : nzSearchValue : nzFilterOption : nzServerSearch "
    "): /Volumes/Zotac 120GB/6sense/Projects/ngx-boilerplate/node_modules/ng-zorro-antd/ng-zorro-antd.d.ts.ɵbo.html@59:18
EN

回答 1

Stack Overflow用户

发布于 2020-02-03 19:41:05

这是lib版本的问题,请尝试降级你的库

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53534351

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档