Closed deskoh closed 4 years ago
How does your tsconfig.json
look like? You can try explicitly setting your alias paths, for example:
"baseUrl": "./",
"paths": {
"*": ["node_modules/*"],
"@hooks/*": ["src/hooks/*"]
}
Issue seemed to be fixed now.
still seeing this issue with v3.9.0
in my case it was importing a local src/queue.js
file instead of the queue
npm module from node_modules
adding "*": ["node_modules/*"],
to paths solved the issue for me but it feels a little hacky
See repo here.
There is an import
However, the
baseUrl
will cause themongoose
to be resolved to the localmongoose.ts
instead of themongoose
package innode_modules
.The VS Code editor and language server seems to resolve it fine (e.g. goto definitions works).
Any way for the modules in
node_modules
to take precedence?