-
-
Notifications
You must be signed in to change notification settings - Fork 916
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
[BUG] 11.0.4 "[ERROR] TS2315: Type 'Uint8Array' is not generic. [plugin angular-compiler]" build error in Angular 18 and 19 #856
Comments
Same for me here. Need to rollback to 11.0.3. |
Same here, but for Angular 16. Fixing on 11.0.3 has resolved the issue. |
For future reference, this is exactly why we have this in the issue template:
I can confirm the uuid typedefs changed between 11.0.3 and 11.0.4 as a result of updating from TS 5.6 -> 5.7. But I don't have a way of easily reproducing your issue so my interest / ability in fixing this is limited. That said... the TS blog post about this recommends updating to the latest |
Related TS issue microsoft/TypeScript#60638 (marked as "not a defect", fwiw) |
@broofa I'm still getting the issue on the latest @types/node package. The issue seems to be typescript package incompatibility. Typescript does not follow semver (microsoft/TypeScript#14116) so all minor versions can include and most times include breaking changes. On angular projects they don't support typescript 5.7 yet so the fix for now is reverting to 11.0.3 |
@broofa On most normal dependencies this would probably have been fine. But this concerns Typescript, so any changes can be very impactful, it strictly compiles everyone's code-bases, so can result in many different experiences. The fact that the TS update 5.6 -> 5.7 was treated as a semver-minor change, but was rolled into UUID as a semver-patch from 11.0.3 -> 11.0.4 is what's hurting a lot right now. Also no mention of this TS dependency upgrade on the 11.0.4 change log. Does the 11.0.4 release need the TS 5.7 upgrade? If not, could a 11.0.5 patch with a TS 5.6 downgrade be an option? |
Nope. That update was just my muscle memory kicking in. I've been in the habit of updating all the dev dependencies on this project whenever I sit down to work on it. Historically, that hasn't been an issue as none of those dependencies changed the API. That's also why that update got flagged as a "chore", which is why it doesn't show up in the CHANGELOG. Obviously the addition of built-in TS support and the Unless someone here objects, I thinki the best solution is to pin the dependency to |
REQUEST: Can someone here put up an MRE example of this problem, please. E.g. a small code snippet that depends on I'd like to put some unit tests in place that capture TS support issues like this. |
Reproduction examplepackage.json
index.ts Run tsc Result
|
Same here |
@broofa No real objections to fixing on that specific version, but I have seen in a few projects that they currently pin their TypeScript dependency like this : "typescript": ">=4.9.3 <5.2". |
Fix published in |
Before you begin...
Description of the problem
The latest patch version 11.0.4 is no longer usable with Angular 18 and 19 because the patch version is requiring Typescript 5.7 which is not supported by Angular 18 and 19.
It worked with previous 11.0.X versions.
It causes the following build error:
Recipe for reproducing
No response
Additional information
No response
Environment
No response
The text was updated successfully, but these errors were encountered: