获取错误无法测试“void”类型的表达式的真实性 angular 7

问题描述 投票:0回答:2
ERROR in node_modules\@ng-bootstrap\ng-bootstrap\datepicker\datepicker-navigation.d.ts.NgbDatepickerNavigation.html(3,67): : An expression of type 'void' cannot be tested for truthiness
node_modules\@ng-bootstrap\ng-bootstrap\datepicker\datepicker-navigation.d.ts.NgbDatepickerNavigation.html(25,67): : An expression of type 'void' cannot be tested for truthiness

当我使用 ng build --prod 时出现此错误

datepicker node-modules angular7
2个回答
0
投票

看看这个问题:https://github.com/ng-bootstrap/ng-bootstrap/issues/2755,你需要将你的 ng-bootstrap 更新到实际版本或用答案修复它,描述于


0
投票

升级到 ngb-3.1.1。这个问题已经得到关注。 https://github.com/ng-bootstrap/ng-bootstrap/issues/2826

© www.soinside.com 2019 - 2024. All rights reserved.