cipchk / ngx-filesaver

Simple file save with FileSaver.js
https://cipchk.github.io/ngx-filesaver/
MIT License
86 stars 18 forks source link

Upgrade my project and my external third library from Angular 11 to 12 fails because of a dependency to "ngx-filesaver" in my library #48

Open JTHOUMEL opened 1 year ago

JTHOUMEL commented 1 year ago

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 the ng serve command:

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)

Any idea of what's wrong ?

See my post on StackOverflow for a complete description of the issue.

cipchk commented 1 year ago

Could it be that the typescript version does not match angular 12?