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

Update to angular v15 #962

Closed
ChristofFritz opened this issue Nov 17, 2022 · 1 comment · Fixed by #963
Closed

Update to angular v15 #962

ChristofFritz opened this issue Nov 17, 2022 · 1 comment · Fixed by #963
Labels

Comments

@ChristofFritz
Copy link

I know I'm rather early with that but ngx-toastr is throwing an error while building after the update to angular 15.

This is the error:

   Type '<T>(token: any, notFoundValue?: T, flags?: InjectFlags) => T | ToastPackage' is not assignable to type '{ <T>(token: ProviderToken<T>, notFoundValue: undefined, options: InjectOptions & { optional?: false; }): T; <T>(token: ProviderToken<T>, notFoundValue: null, options: InjectOptions): T; <T>(token: ProviderToken<...>, notFoundValue?: T, options?: InjectOptions | InjectFlags): T; <T>(token: ProviderToken<...>, notFou...'.
     Types of parameters 'flags' and 'options' are incompatible.
       Type 'InjectOptions & { optional?: false; }' is not assignable to type 'InjectFlags'.

 47     get<T>(token: any, notFoundValue?: T, flags?: InjectFlags): T | ToastPackage; ```
scttcper added a commit that referenced this issue Nov 17, 2022
BREAKING CHANGE: support angular 15

fixes #962
fixes #887
@scttcper
Copy link
Owner

🎉 This issue has been resolved in version 16.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

2 participants