Closed BorntraegerMarc closed 7 years ago
@tflori is it maybe because of an updated typescript version?
It was really because of angular. After downgrading to 4.1.3 everything worked
@tflori could you add support for angular 4.2+ ?
@BorntraegerMarc thanks, for the info. I will fix it (maybe tomorrow morning, maybe today in the evening)..
@tflori Is there something I can do to help you accelerate the process? We desperately need this...
Of course! If you have a solution you can create a Pull Request
Marc Bornträger notifications@github.com schrieb am Di., 20. Juni 2017, 18:35:
@tflori https://github.com/tflori Is there something I can do to help you accelerate the process? We desperately need this...
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/tflori/angular-translator/issues/46#issuecomment-309815867, or mute the thread https://github.com/notifications/unsubscribe-auth/AEoXO9KPpFlJPtp687LmGwKg8acpT653ks5sF_TOgaJpZM4N_JQL .
i just have two problems:
@tflori good catch. Maybe you could release a breaking change version 3.0 for this library? Basically the only difference would be a peer dependency of at least angular 4.2.0
My guess is that most of the developers won't have problems to upgrade the code from 4.1.3 to 4.2.0...
Sorry, can't find the time at the moment to help you out with a PR...
@tflori Regarding the issue, it occurs basically on the TranslatorConfig.ts [64]
in my case.
Did you check this commit: https://github.com/angular/angular/commit/50abca4583eb54bcab030a708f65ad11058082d9? There are main changes between compiler v4.1.3 and v4.2. As I had a brief look at it, JitReflector
may be the best candidate to pass to the PipeResolver.constructor
.
I tried to pass new JitReflector()
to the PipeResolver.constructor
and so could pass through compilation, however, I got the following error on my browser.
Error: Template parse errors:
The pipe 'translate' could not be found ("end-background">
<app-toolbar>
<div ... id="title">{{[ERROR ->]'welcome.title' | translate}}</div>
</app-toolbar>
</app-header>
"):
Just hope you get any hint from my attempt and resolve this issue asap.
Thanks.
@first87 this must be another error. everything working fine on my angular-translator-demo with this change.
can both please try angular-translator@2.1.1-alpha.2
.
I hope I can get a fix for this breaking change in angular (I will open a PR soon).
@tflori This fixed the issue! Thanks a lot!
I will wait for an answer if we have to create a new version because of this ***ing breaking change that is not even mentioned in the changelog. Really annoying for such a big project like angular.
@tflori angular-translator@2.1.1-alpha.2
works good and it resolved the issue.
@BorntraegerMarc @first87 As my ticket got closed I had to find another solution. And I found one not to make it incompatible with previous version of angular. It is already published under 2.1.1-alpha.4 and I will release after the merge version 2.1.1.
Cool, thx!
When I run
ng build
with angular 4.2.3 then I get the following error:Here is my full package.json dependencies: