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.

tsc does not pass after running reignore

See original GitHub issue

I ran ts-migrate reignore . on my codebase. When I run tsc, I get a bunch of errors. I made sure that the version of tsc I’m using matches what ts-migrate bundles.

The 126 errors are in this gist.

I manually removed one of the error TS2578: Unused '@ts-expect-error' directive errors, and there was no problem on that line on a subsequent tsc run.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:7

github_iconTop GitHub Comments

1reaction
NickHeinercommented, Apr 27, 2021

Yes, I’ll get back to this hopefully over the next few weeks, and I’ll let you know.

0reactions
devinrhode2commented, Nov 3, 2021

false alarm! Using latest ts-migrate (0.1.26) and this command:

yarn ts-migrate migrate . --plugin ts-ignore --sources="node_modules/**/*.d.ts" --sources="node_modules/@types/**/*.{ts,tsx}" --sources="apps/**/*.{ts,tsx}" --sources="libs/**/*.{ts,tsx}"

Seems to create proper @ts-expect-error comments if the --sources are set correctly…

Read more comments on GitHub >

github_iconTop Results From Across the Web

running tsc command does nothing, ignores tsconfig file?
Yes tsc ignores your tsconfig.json because you have passed it a file to process. Typescript docs: When input files are specified on the ......
Read more >
ts-loader - npm
Start using ts-loader in your project by running `npm i ts-loader`. ... that when typescript doesn't do a full type check, it does...
Read more >
How to use ESLint with TypeScript | Khalil Stemmler
ESLint is a JavaScript linter that you can use to lint either TypeScript or JavaScript code. In this post, we'll walk through how...
Read more >
Working with JavaScript in Visual Studio Code
When type inference does not provide the desired information, ... Run npm --version from a terminal or command prompt to quickly check that...
Read more >
Features | Vite
Native ES imports do not support bare module imports like the following: ... (you can run tsc --noEmit in the build script or...
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