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