MOtherMetroid
How to resolve an import statement in Deno
Hm, I don't use Deno with package.json. Can you not import it via
deno add npm:@package
?
Only other thing I remember is that I have to enable the Deno extension by manually enabling it (in my case workspace only). Setting deno.enable
does not work for me for some reason.16 replies
How to resolve an import statement in Deno
Do you get the error in the IDE or at runtime? I got that before in the IDE and had to enable the Deno extension:
https://docs.deno.com/runtime/manual/references/vscode_deno/
16 replies
Deno.enable not working
Huh, it didn't fix it for me. But just now, when I created a
deno.json
file, the error was gone... even though the file is completely empty. Is this expected behaviour?
Edit: Turns out deno.enable
isn't even needed? I'm confused @.@78 replies