Typescript 5 Integration
maxbilbow opened this issue · comments
Projects migrating to Typescript 5 will not be able to install on NPM 7+ because of the peer dependency conflict.
Hopefully this is just a case of evaluating compatibility and adding v5 to the peer dependency version range.
@erikbarke, has this project been abandoned?
This project seems to be dead, what are the alternatives?
I just got bit by this. Temporarily reverting toTS4 but that is far from the best resolution.
@digable1 There is a better solution:
{
"overrides": {
"karma-typescript@<=5.5.2": {
"typescript": "$typescript"
}
}
More info: https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides
Hmmm.....that didn't work for me.
But this did:
"overrides": {
"karma-typescript": {
".": "^5.5.3",
"typescript": "^5.0.4"
}
}
Furthermore, hopefully by the time any of these two minor versions get implemented, this won't be needed. Yeah, it's brittle and hacky and a gamble regarding the future state of this issue, but I like this idea better than deprecating TS.
So thanks for that!
In the meantime: Still asking along with the rest of the posts on this issue tor a resolution (hopefully as simple as the update to the dependency range as suggested in post 1).
I think that overrides the karma-typescript version as well.
I recommend using $typescript
for the version as this references whatever you specify in your dependencies.
Hey guys, my apologies for the delay, I haven't been able to work on this project for a long time now. 5.5.4 is on npm with support for TS 5 now 🙂