Open JTHOUMEL opened 1 year ago
I have two Angular projects :
The external third library has a dependency to the ngx-filesaver library.
ngx-filesaver
With Angular 11 ("@angular/core": "~11.2.14", "ngx-filesaver": "^11.0.0"), everything is OK.
"@angular/core": "~11.2.14"
"ngx-filesaver": "^11.0.0"
After upgrading to Angular 12 ("@angular/core": "~12.2.17", "ngx-filesaver": "^12.0.0"), I have an error after launching the ng serve command:
"@angular/core": "~12.2.17"
"ngx-filesaver": "^12.0.0"
ng serve
C:\Users\my-path\node_modules\@angular\compiler-cli\ngcc\src\entry_point_finder\targeted_entry_point_finder.js:40 throw new Error("The target entry-point \"" + invalidTarget.entryPoint.name + "\" has missing dependencies:\n" + ^ Error: The target entry-point "my-external-third-library" has missing dependencies: - ngx-toastr/public_api - ngx-filesaver/index
(note the ngx-toastr library is also causing a similar issue)
ngx-toastr
Any idea of what's wrong ?
See my post on StackOverflow for a complete description of the issue.
Could it be that the typescript version does not match angular 12?
typescript
I have two Angular projects :
The external third library has a dependency to the
ngx-filesaver
library.With Angular 11 (
"@angular/core": "~11.2.14"
,"ngx-filesaver": "^11.0.0"
), everything is OK.After upgrading to Angular 12 (
"@angular/core": "~12.2.17"
,"ngx-filesaver": "^12.0.0"
), I have an error after launching theng serve
command:(note the
ngx-toastr
library is also causing a similar issue)Any idea of what's wrong ?
See my post on StackOverflow for a complete description of the issue.