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时,我得到了这个错误
发布于 2019-01-17 19:29:32
看看这个问题:https://github.com/ng-bootstrap/ng-bootstrap/issues/2755,您需要将您的ng-bootstrap更新为实际版本,或者使用答案修复它,如
发布于 2019-08-27 15:18:19
升级到ngb-3.1.1。这个问题已经解决了。https://github.com/ng-bootstrap/ng-bootstrap/issues/2826
https://stackoverflow.com/questions/53993154
复制相似问题