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