0

I'm getting hundreds of errors from files in my node_modules folder for this project. How do I stop these from filling my Visual Studio error section? I feel like I'm missing a config file perhaps but unsure... The project does not use TypeScript itself.

examples of errors in VS project's error list

My package.json file looks like this:

package.json screenshot

George Feakes
  • 152
  • 2
  • 13
  • Enable `skipLibCheck` in your tsconfig. – kelsny Feb 28 '23 at 15:47
  • Woah.. People use VS for js/ts development? Why not vscode? – zerdox Feb 28 '23 at 15:48
  • @vr. I will have to create a `tsconfig` file then. Anything else I need in that file as standard? As mentioned in the question I don't actually have a TypeScript element to the project – George Feakes Feb 28 '23 at 16:19
  • @zerdox I'm not trying to use VS for JS/TS development. It's just picking up all these errors from the node_modules folder for the project. VS Code is 100% the better editor for JS/TS files – George Feakes Feb 28 '23 at 16:20
  • 1
    @GeorgeFeakes as I know you can also use jsconfig. You can also try to use this answer: https://stackoverflow.com/a/73423322/11858171 – zerdox Feb 28 '23 at 17:25
  • @zerdox sadly I thought this had worked but then a week later the errors have appeared again in Visual Studio while the folder and sub folders are still hidden... – George Feakes Mar 16 '23 at 09:05

0 Answers0