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

rename injection token from config so it is easier to determine the library. #965

Closed
pete-mcwilliams opened this issue Jan 7, 2022 · 1 comment

Comments

@pete-mcwilliams
Copy link

🚀 feature request

Description

When NgxMaskModule.forRoot() is missing in app.module.ts or inside a .spec.ts file the error message displayed is not very helpful in identifying what the issue is.

ERROR NullInjectorError: R3InjectorError()[InjectionToken config -> InjectionToken config -> InjectionToken config -> InjectionToken config]:
NullInjectorError: No provider for InjectionToken config!

Please consider renaming InjectionToken('config') to InjectionToken('ngxmask-config') or similar in the following

export const config: InjectionToken = new InjectionToken('config');

NepipenkoIgor pushed a commit that referenced this issue Mar 28, 2022
NepipenkoIgor added a commit that referenced this issue Mar 28, 2022
…and exportAs for directive (#986)

Co-authored-by: Igor Nepipenko <[email protected]>
@NepipenkoIgor
Copy link
Collaborator

@pete-mcwilliams Hi. Thank you for request . Please use [email protected]

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