Olyno
Olyno•7mo ago

Cannot find module

Hi vmathi 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?
No description
10 Replies
NeTT
NeTT•7mo ago
reload the workspace
Olyno
Olyno•7mo ago
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
NeTT
NeTT•7mo ago
is deno enabled for the workspace? the deno extension
Olyno
Olyno•7mo ago
Yes it is
NeTT
NeTT•7mo ago
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
Olyno
Olyno•7mo ago
It is 🤔
No description
Olyno
Olyno•7mo ago
Except if now, enabling an extension on a specific workspace does not work anymore 🤔
NeTT
NeTT•7mo ago
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
Olyno
Olyno•7mo ago
Oh i'm just a dumbass, i forgot we had to initialize the workspace 🤦‍♂️ 😂 This solves the issue, thank you!
NeTT
NeTT•7mo ago
you're welcome