Skip to content

NullInjectorError: No provider for TranslateService! #1

@MalekDammak

Description

@MalekDammak

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions