Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Jun 5, 2023 · 1 comment

Comments

@JTHOUMEL
Copy link

JTHOUMEL commented Jun 5, 2023

I have two Angular projects :

  • the main Angular project
  • an external third library

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
Copy link
Owner

cipchk commented Jun 7, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants