Open just-jeb opened 1 year ago
did you solve it @just-jeb ?
Nope I gave up 😅.
Nope I gave up 😅.
por favor señor, I got a solution for you right here. (at least the one that worked for us)
We had to downgrade our typescript version in the project to 4.7.2 (which is the one used for this package) So just run
npm install -D typescript@4.7.2
or
yarn add -D typescript@4.7.2
And then try to run your migration.js file or the extremely well documented CLI.
Hope it works for you, best wishes and happy new year.
@Laberbear absolutely fantastic, this worked and saved me so much time, thank you for sharing this workaround!
I'm trying to migrate a JS project (that contains JSDoc annotations) to TS project. So far I've been able to come to a point where all my files are TS, everything compiles and the bundle is produced.
However, when I try to run JSDoc plugin and hopefully convert all the JSDoc annotations to proper TS types it doesn't really work. This is what I do (and the output):
This is my
tsconfig.json
(located atpackages/my-project
):And this is an example for one of the JSDoc annotations located in one of the files (say
packages/my-project/src/example.ts
):I would expect this JSDoc to be transformed into typed signature. Did I get that wrong? Isn't it what the JSDoc plugin supposed to do? Or am I just using it the wrong way?
P.S. I also tried to use older version (as it seemed to solve the issue earlier), but it didn't help.