-
Notifications
You must be signed in to change notification settings - Fork 167
How to disable 'Could not find a declaration file for module' #142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm also having trouble with this. @raxod502 did you ever find a solution? |
I am looking at that line of code in my project right now, and currently no warning is being displayed. However, I cannot for the life of me figure out why that might be. Here is the code, though, in case it is helpful. |
I am also have the same problem. Is there a fix for this? |
I have the same problem. I don't use typescript but when i require skipper the warning appears. Would appreciate any solution to this. |
Same issue here in a JS-only project that uses tsserver for LSP. I've tried all of the supposed solutions I can find and none of them seem to have any effect. Looking through the logs, I've verified that tsserver is indeed seeing my |
It will be possible to ignore specific diagnostics with the new |
I have a JavaScript file which includes
and this gets a warning from the language server
This is not a useful warning because my code is not TypeScript and I do not care about types. How can I disable the warning? Here's what I already tried:
types.d.ts
next to myindex.js
containingdeclare module '*';
(I use Parcel to compile my webapp)tsconfig.json
in my project root with{ "compilerOptions": { "noImplicitAny": false } }
// @ts-ignore
None of these do anything, even after I restart the language server. How do I disable the warning?
The text was updated successfully, but these errors were encountered: