cancel
Showing results for 
Search instead for 
Did you mean: 

Help needed

Incrassate
Champ in-the-making
Champ in-the-making

Hello. I'm starting with Alfresco ADF and configuring a simple application in Angular. After installing and importing the necessary modules, any core component I try to place in the view gives me the error TypeError: this.customLoader.setDefaultLang is not a function.

At first, the problem NullInjectorError: NullInjectorError: No provider for _TranslateService! appeared, but after using in app.config.ts

importProvidersFrom
(
TranslateModule.forRoot(
{
loader:
{
provide: TranslateLoader,
useFactory: createTranslateLoader,
deps: [HttpClient, Router]
},
defaultLanguage: 'en'
})
)

the problem is now

TypeError: this.customLoader.setDefaultLang is not a function.

0 REPLIES 0