Cannot find module
Hi I'm trying to run a project with Deno, but i'm getting "Cannot find module" with the
npm
prefix. The code is working correctly, simply the extension won't work correctly. Any idea how i could fix it please?10 Replies
reload the workspace
Already done, i reloaded vscode but still have this issue for some reasons. I did a simple reload, but also closed and reopened vscode
I'm on Fedora 39 if it can help
is deno enabled for the workspace?
the deno extension
Yes it is
weird then
coz it seems like a ts error
deno will give a different error
"Uncached or missing npm module"
check again if Deno is enabled
It is 🤔
Except if now, enabling an extension on a specific workspace does not work anymore 🤔
isn't it disabled if "enable" shows up?
also by "enable"
I mean
enable for one workspace
ctrl + shift + p
type deno in that
you'll see "Deno: Initialize workspace configuration" or something like that
Oh i'm just a dumbass, i forgot we had to initialize the workspace 🤦♂️ 😂
This solves the issue, thank you!
you're welcome