-
-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation failure for Angular 8 projects using v12.1 #1168
Comments
Hey, thanks for the report ! It looks like there's a breaking change with TS 3.7.x that throws this error if your project uses a 3.6.x version of typescript. |
@ocombe As of now (almost half an hour after your fix), the 12.1.1 version is still not available on npmjs.org :
Might be your CI publishing process is currently running and taking a while. I'm leaving the office in a few minutes and wont be able to test your version until tomorrow. Can you have a look to be sure the version is correctly published to npmjs.org ? |
Yes, I've received the confirmation email from npm, and https://www.npmjs.com/package/@ngx-translate/core lists the latest version as 12.1.1 |
@ocombe Clicking your link just now still show me the 12.1.0 version as latest...
Don't you have a special view because you are authenticated on npmjs repository ? I cannot see the 12.1.1 for now... |
@ocombe Today I can see the 12.1.1 version. Tested and working, thanks for the quick fix. |
Awesome! Thanks for the report |
Current behavior
Compilation error for Angular 8 projects using v12.1 of ngx-translate :
Only the first error was copy/pasted, there is a dozen of similar.
Expected behavior
TypeScript compilation should not fail as v12.1 branch is advertised for Angular 8 in the documentation.
How do you think that we should fix this?
v12.1 Angular peer dependency is set to >= 8.0.0, but TypeScript version used to compile this version of the library is 3.7.x. This is a mismatch with Angular supported TypeScript version, which are 3.4 for Angular 8.0/8.1 branches, 3.5 for Angular 8.2 branches, and 3.6/3.7 for Angular 9.
The peer dependency of v12.1 should reflect this if possible. The compatibility table of the documentation should at least be updated accordingly (currently, it still states all 12.x branches is compatible with Angular 8).
Minimal reproduction of the problem with instructions
Any Angular project with TypeScript 3.5 (which roughly means 8.2 version of Angular) cannot compile v12.1 published version.
The text was updated successfully, but these errors were encountered: