Closed myarcana closed 1 year ago
My tsconfig.json specifies "types": ["node"], but nvm thinks that the first line of the sibling ts file import * as path from 'path'; has a
tsconfig.json
"types": ["node"]
import * as path from 'path';
Cannot find module 'path' or its corresponding type declarations. (tsserver 2307)
error. ts-node that-file.ts runs perfectly fine, it's only inside of nvim that I see this "error"
ts-node that-file.ts
You may need "moduleResolution": "node" in your tsconfig.json
"moduleResolution": "node"
My
tsconfig.json
specifies"types": ["node"]
, but nvm thinks that the first line of the sibling ts fileimport * as path from 'path';
has aerror.
ts-node that-file.ts
runs perfectly fine, it's only inside of nvim that I see this "error"