mwootendev / ngx-translate-plugins

Utilities plugins for the @ngx-translate translation library.
MIT License
16 stars 10 forks source link

6.0.0 : Class constructor TranslateLoader cannot be invoked without 'new' #48

Closed wmarques closed 2 years ago

wmarques commented 2 years ago

Describe the bug After upgrading to 6.0.0 and Angular 13 I'm having this error when running my test.

To Reproduce Setup a project with latest version of Angular, NGX Translate and ngx-tranlate-testing

Expected behavior It shouldn't output error

Screenshots N/A

Desktop (please complete the following information):

Thanks ! Tell me if I can help on resolving this bug

wmarques commented 2 years ago

Nevermind my Jest config was wrong, sorry ! EDIT: sorry I was wrong, even with a very basic Jest config I have the issue...

mwootendev commented 2 years ago

@wmarques I have not been able to reproduce this. Can you provide any additional details about your setup and how it differs from: https://github.com/mwootendev/ngx-translate-plugins/blob/develop/src/app/app.component.spec.ts#L22?

JamesHenry commented 2 years ago

@mwootendev You are not using jest in the example setup is the big difference I think - I have provided a write up in #50 as to an easy way to reproduce this and #49

mwootendev commented 2 years ago

@JamesHenry thanks for the explanation in #50. I was able to publish a new 6.0.1 version with Ivy partial support enabled. This should hopefully resolve this issue.