Support angular 8
description here https://angular.io/guide/static-query-migration
ngx-bootstrap: latests
Angular: 8
In the development branch there is this file: ngx-bootstrap/src/timepicker/models/index.ts which has the correct imports.
On version 3.3.0 the imports are incorrect, that is currently the only error i get for angular 8.
I've got this error when upgrading to v8:
ERROR in node_modules/ngx-bootstrap/timepicker/models/index.d.ts(2,38): error TS2307: Cannot find module '@angular/forms/src/directives/control_value_accessor'.
node_modules/ngx-bootstrap/timepicker/models/index.d.ts(3,22): error TS2307: Cannot find module '@angular/core/src/type'.
@AhsanAyaz yes me too, that's the file i'm referring too. Apperently there is a new version 4.3.0 which fixes it. Just not sure if thats a bootstrap 4 only or if it's both? My team included 3.2 back then because we need bootstrap 3
@SamanthaAdrichem yes I don't see the issue after upgrading to 4.3.0.
I'm using Bootstrap 4.
PR in progress: https://github.com/valor-software/ngx-bootstrap/pull/5245
Trying to update to angular 8 and I am getting this error:
ERROR in node_modules/ngx-bootstrap/collapse/collapse.directive.d.ts(1,34): error TS2307: Cannot find module '@angular/animations'.
Using v 4.3.0 of ngx-bootstrap
install @angular/animations
Guys, this is not a definitive solution, but in case you want to compile the project and continue working, I have escaped the issue doing the following (Use it while the correct solution for this problem arrives)
1) Go to the path: node_modules/ngx-bootstrap/timepicker/models/index.d.ts
2) CHANGE these two lines:
import { ControlValueAccessor } from '@angular/forms/src/directives/control_value_accessor';
import { Type } from '@angular/core/src/type';
by these ones:
import { ControlValueAccessor } from '@angular/forms';
import { Type } from '@angular/core/';
You'd be able to run the project again.
please update ngx-bootstrap above to v3.3 like as: v4,
then you update remove the error in your terminal :
import { ControlValueAccessor } from '@angular/forms/src/directives/control_value_accessor';
import { Type } from '@angular/core/src/type';
yes, I don't see the issue after upgrading to 4.3.0.
I'm using Bootstrap 4.
Most helpful comment
Guys, this is not a definitive solution, but in case you want to compile the project and continue working, I have escaped the issue doing the following (Use it while the correct solution for this problem arrives)
1) Go to the path: node_modules/ngx-bootstrap/timepicker/models/index.d.ts
2) CHANGE these two lines:
import { ControlValueAccessor } from '@angular/forms/src/directives/control_value_accessor';import { Type } from '@angular/core/src/type';by these ones:
import { ControlValueAccessor } from '@angular/forms';import { Type } from '@angular/core/';You'd be able to run the project again.