【发布时间】:2019-09-02 11:37:57
【问题描述】:
从 ngx bootstrap 3.0.1 升级到 4.0.1 时出现以下错误。替换了 node_modules,package.json 仍然出现相同的错误。 角度版本:
Angular 6,
Typescript: 2.7.2.
Errors:
ERROR in node_modules/ngx-bootstrap/chronos/utils/type-checks.d.ts(8,62): error TS2304: Cannot find name 'Extract'.
node_modules/ngx-bootstrap/datepicker/reducer/bs-datepicker.actions.d.ts(5,33): error TS1039: Initializers are not allowed in ambient contexts.
node_modules/ngx-bootstrap/timepicker/reducer/bs-datepicker.actions.d.ts(4,33): error TS1039: Initializers are not allowed in ambient contexts.
【问题讨论】: