Upgrade 3.5.0 to 3.9.0 : TypeError: this.customLoader.setDefaultLang is not a function.

cancel
Showing results for 
Search instead for 
Did you mean: 
anakin98000
Active Member

Upgrade 3.5.0 to 3.9.0 : TypeError: this.customLoader.setDefaultLang is not a function.

Hi,

i have following message after upgrading from 3.5 to 3.9 : TypeError: this.customLoader.setDefaultLang is not a function. The only thing I add is "TranslateModule.forRoot()" in app.module...

"@alfresco/adf-content-services": "3.9.0",
"@alfresco/adf-core": "3.9.0",
"@alfresco/adf-insights": "3.9.0",
"@alfresco/adf-extensions": "3.9.0",
"@alfresco/js-api": "3.9.0",
"@ngx-translate/core": "^11.0.1",

I add in AppModule: 

TranslateModule.forRoot()

What is missing ?

Thanks in advance

 

Edit:

line error : new TranslationService (adf-core.js:4664)

1 Reply
Nochbesser
Member II

Re: Upgrade 3.5.0 to 3.9.0 : TypeError: this.customLoader.setDefaultLang is not a function.

Hello,

Upgrading from 2.5 to 3.7, I got the same TypeError.
It was a forRoot() problem, as it turned out. I shouldn't have put the TranslateModule.forRoot in SharedModule.

David Steedman

Nochbesser editor-in-chief

 

 


https://essays.agency/ my educational tools