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.

Do not type check .js files in referenced node_modules under `--checkJs` and `--maxNodeModuleJsDepth` > 0

See original GitHub issue
  • Create a jsconfig.json
  • Set checkJs to true
  • run tsc --p ./jsconfig.json

Expected: no errors in node_modules\*\*.js.

There is no really good fix for these issues. i would suggest not checking these files

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:7
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
Raynoscommented, Feb 4, 2021

My workaround is tsc -p jsconfig.json --maxNodeModuleJsDepth 0.

For some reason it ignore maxNodeModuleJsDepth in jsconfig.json but setting it 0 explicitely fixes it for me.

1reaction
sandersncommented, Feb 21, 2020

@apalaniuk The best contribution you could is to add to this issue. The OP is pretty detail free. I’d like to see:

  1. A simple, self-contained repro, with full actual and expected behaviour.
  2. Multiple use cases with actual/expected behaviour.
  3. A discussion of backward compatibility considerations – what does this mean for people who already have a jsconfig?

If you can provide any of these, it will help move the issue along; if we can decide what to do, I think doing it will be pretty easy.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TSConfig Reference - Docs on every TSConfig option
From allowJs to useDefineForClassFields the TSConfig reference includes information about all of the active compiler flags setting up a TypeScript project.
Read more >
Why don't absolute paths work when importing a typescript file ...
I've tried so many solutions to absolute path problems. Consider the following as the main crux of the issue: Absolute paths work for...
Read more >
Compiler Options - TypeScript
Option Type Default ‑‑allowJs boolean false ‑‑allowSyntheticDefaultImports boolean module === "system" or ‑‑esModuleInterop ‑‑allowUmdGlobalAccess boolean false
Read more >
ts-node - npm
transpileOnly; typeCheck; compilerHost; files; ignoreDiagnostics ... ts-node is a TypeScript execution engine and REPL for Node.js.
Read more >
node js unknown file extension .ts - You.com | The AI Search ...
If you don't want to remove "type": "module" (for example if you're using import ... folder depth used for checking JavaScript files from...
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