Alin Bizau
Alin Bizau

Reputation: 79

ngx-translate with Angular 9 not working in IE showing compilation error SCRIPT1002

After importing TranslateModule into my app module I am seeing an error in Internet Explorer SCRIPT1002 and when navigate to that line I am seeing a class TranslateLoader(there is the problem, IE doesn't know about class).

My app is working in IE without that library so doesn't seem to be a polyfills issue there.

Any help would be appreciated. Thanks.

Using IE11. Happens in both dev mode and prod mode.

Upvotes: 1

Views: 504

Answers (1)

gdev
gdev

Reputation: 36

Not sure if this is the proper solution but it worked for me: I have downgraded ngx translate core and http-loader versions as follows:

"@ngx-translate/core": "^12.0.0",
"@ngx-translate/http-loader": "^5.0.0"

Upvotes: 2

Related Questions