首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Angular8 ngx-bootstrap不能使用--prod编译

Angular8 ngx-bootstrap不能使用--prod编译
EN

Stack Overflow用户
提问于 2020-04-12 03:27:20
回答 2查看 2K关注 0票数 4

使用

代码语言:javascript
复制
angular cli 8.3.8, 
bootstrap 4.4.4
ngx-bootstrap 5.6.1, 

在开发中,一切都运行得很好。但是当我使用--prod进行编译时,我得到了下面的错误。我们必须让--prod起作用。datepicker看起来和工作都很棒,不想把它去掉。

代码语言:javascript
复制
ERROR in node_modules/ngx-bootstrap/datepicker/ngx-bootstrap-datepicker.d.ts.BsDatepickerContainerComponent.html(60,7): Property 'chosenRange' does not exist on type 'BsDatepickerContainerComponent'.
node_modules/ngx-bootstrap/datepicker/ngx-bootstrap-datepicker.d.ts.BsDatepickerContainerComponent.html(62,7): Property 'setRangeOnCalendar' does not exist on type 'BsDatepickerContainerComponent'.
node_modules/ngx-bootstrap/datepicker/ngx-bootstrap-datepicker.d.ts.BsDatepickerInlineContainerComponent.html(60,7): Property 'chosenRange' does not exist on type 'BsDatepickerInlineContainerComponent'.
node_modules/ngx-bootstrap/datepicker/ngx-bootstrap-datepicker.d.ts.BsDatepickerInlineContainerComponent.html(62,7): Property 'setRangeOnCalendar' does not exist on type 'BsDatepickerInlineContainerComponent'.
EN

回答 2

Stack Overflow用户

发布于 2020-04-29 21:44:18

我也有同样的问题,试着把ngx-bootstrap版本降级到'5.1.0‘。

使用命令npm install ngx-bootstrap@5.1.0

票数 4
EN

Stack Overflow用户

发布于 2020-11-27 21:59:47

在package.json中更改为"ngx-bootstrap":"5.6.2“并运行npm i。

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

https://stackoverflow.com/questions/61162522

复制
相关文章

相似问题

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