question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question about a upgrade TS to version 3.9

See original GitHub issue

Can I ask for upgrading the TS version to 3.9?

The current version of morph does not want to work with the new TS.

Argument of type 'import("/home/grzegorz/Pulpit/Projekty/gpp-website3/node_modules/ts-morph/lib/ts-morph").Node<import("/home/grzegorz/Pulpit/Projekty/gpp-website3/node_modules/@ts-morph/common/node_modules/typescript/lib/typescript").Node>' is not assignable to parameter of type 'import("/home/grzegorz/Pulpit/Projekty/gpp-website3/node_modules/ts-morph/lib/ts-morph").Node<import("/home/grzegorz/Pulpit/Projekty/gpp-website3/node_modules/typescript/lib/typescript").Node>

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
szagi3891commented, May 17, 2020

Thank you very much. This completely solves my problem 😃

1reaction
dsherretcommented, May 16, 2020

Sorry, missed this until now and upgrading wasn’t a priority since there wasn’t much changes in TS 3.9. I did have this done locally on my machine though with the RC version, so I just had to change it to 3.9.2.

Highly recommend using the ts export from ts-morph to ensure both your code and ts-morph are using the same compiler version so you don’t run into trouble 🙂

import { ts } from "ts-morph";

I’ll do a release for this soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - TypeScript 3.9
If you've been stuck on older versions of TypeScript due to issues around Promise s, we encourage you to give 3.9 a shot!...
Read more >
How to upgrade Typescript to the latest version?
I have upgraded npm to the latest version, then re-installed typescript and now I have the latest version of typescript installed on my...
Read more >
New Features in TypeScript 3.9 - Telerik
TypeScript 3.9 was recently released. Check out the highlights of the new version, which focused on performance, speed and stability.
Read more >
How to upgrade typescript to any specific version or latest ...
Following is the command if you want to install and upgrade Typescript version to the latest Typescript version. Open the Node.js Command ...
Read more >
TypeScript 4 upgrade · Issue #16101 · microsoft/fluentui - GitHub
Minor update: I looked into whether upgrading to tslib@2 is required to use TS 4.1--it appears the answer is yes, but also it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found