basically "noImplicitAny": false this config is not being respected.
However, when I run npx tsc in the folder, it works fine.
when I turn the option to true to see if the config file is being respected, it gives correct error messages
npx tsc
src/index.ts:1:24 - error TS7016: Could not find a declaration file for module 'postprocessing'. '/Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/postprocessing/build/postprocessing.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/postprocessing` if it exists or add a new declaration (.d.ts) file containing `declare module 'postprocessing';`
1 import { random } from "postprocessing";
~~~~~~~~~~~~~~~~
Found 1 error.
[tsserver 7016] [I] Could not find a declaration
file for module 'postprocessing'. '/Users/zirho6/
Documents/Projects/examples/tsconfig-not-respected/
node_modules/postprocessing/build/postprocessing.
js' implicitly has an 'any' type.
Try npm i --save-dev @types/postprocessing if
it exists or add a new declaration (.d.ts) file
containing declare module 'postprocessing';
I am using nvm so I put my path in coc-settings.json
Hi
I can not figure out why my
tsconfig.json
is not being respected.so I separated the issue and setup a repo here. https://github.com/aquadesk/tsconfig-not-respected this is my example repository
basically
"noImplicitAny": false
this config is not being respected.However, when I run
npx tsc
in the folder, it works fine. when I turn the option to true to see if the config file is being respected, it gives correct error messagesalso for the config it looks good
I use neovim
When I oepn
src/index.ts
file https://github.com/aquadesk/tsconfig-not-respected/blob/master/src/index.ts I get this error from the vim[tsserver 7016] [I] Could not find a declaration file for module 'postprocessing'. '/Users/zirho6/ Documents/Projects/examples/tsconfig-not-respected/ node_modules/postprocessing/build/postprocessing. js' implicitly has an 'any' type. Try
npm i --save-dev @types/postprocessing
if it exists or add a new declaration (.d.ts) file containingdeclare module 'postprocessing';
I am using nvm so I put my path in coc-settings.json
I've set the default node version to v12
I have captured logs in the repo as well https://github.com/aquadesk/tsconfig-not-respected/blob/master/tsserver.log (I am also attaching it at the bottom here)
I think I found some of these errors and I suspect this could be the root cause.
Can anyone help?
thanks!