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

送分小仙女□ 提交于 2020-08-26 08:38:51

问题


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.


回答1:


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"


来源:https://stackoverflow.com/questions/63012741/ngx-translate-with-angular-9-not-working-in-ie-showing-compilation-error-script1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!