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

NullInjectorError: No provider for TranslateService! #1

Open
1 of 3 tasks
MalekDammak opened this issue Jun 1, 2020 · 4 comments
Open
1 of 3 tasks

NullInjectorError: No provider for TranslateService! #1

MalekDammak opened this issue Jun 1, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@MalekDammak
Copy link

I'm submitting a ... (check one with "x")

  • bug report => check the FAQ and search github for a similar issue or PR before submitting

  • support request => check the FAQ and search github for a similar issue before submitting

  • feature reques

Current behavior
I followed the installation and usage steps for ngx-translate but I get this error :

Error: No provider for TranslateService!

AppRoutingModule
export const routes: Routes = [ { path: '', redirectTo: 'dashboard', pathMatch: 'full', }, { path: '404', component: P404Component, data: { title: 'title.404PAGE' } }]
AppRoutingModule
imports: [ RouterModule.forRoot(routes) ,TranslateModule.forRoot(), TitleModule]

@sebastianmusial
Copy link
Member

sebastianmusial commented Jun 2, 2020

@MelekDamak Thanks! I will try to fix it soon.
Oops... I tested it before only with @ngsm/i18n where is this service.

@sebastianmusial sebastianmusial added the bug Something isn't working label Jun 2, 2020
@sebastianmusial
Copy link
Member

@MelekDamak I pushed a new version please check it now.

@grzegorzbernat
Copy link

I have the same problem.

@MalekDammak
Copy link
Author

@MelekDamak I pushed a new version please check it now.

same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants