MOtherMetroid
MOtherMetroid
DDeno
Created by MelodyMaker on 8/30/2024 in #help
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
DDeno
Created by MelodyMaker on 8/30/2024 in #help
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
DDeno
Created by MOtherMetroid on 4/20/2024 in #help
Deno.enable not working
Import maps are still not resolved in the editor 😦 deno.json
{
"imports": {
"dotenv": "jsr:@std/dotenv"
}
}
{
"imports": {
"dotenv": "jsr:@std/dotenv"
}
}
main.ts
import { load } from 'dotenv'
import { load } from 'dotenv'
Relative import path "dotenv" not prefixed with / or ./ or ../deno(import-prefix-missing) This should be how it's supposed to work though, right?
78 replies
DDeno
Created by MOtherMetroid on 4/20/2024 in #help
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
DDeno
Created by MOtherMetroid on 4/20/2024 in #help
Deno.enable not working
Gonna try tomorrow, it's past midnight for me. :fast_deno:
78 replies
DDeno
Created by MOtherMetroid on 4/20/2024 in #help
Deno.enable not working
Ah, maybe this will also fix VSC ignoring the import map? Same thing basically, the editor can't resolve imports from the import map. But when running the file, it works as it's supposed to.
78 replies
DDeno
Created by MOtherMetroid on 4/20/2024 in #help
Deno.enable not working
Thanks for looking into this! Feel free to ping me when a new version is live with a fix.
78 replies
DDeno
Created by MOtherMetroid on 4/20/2024 in #help
Deno.enable not working
So I have to guess no one knows anything about this? Can't continue using Deno in this state
78 replies
DDeno
Created by MOtherMetroid on 4/13/2024 in #help
Warning: Not implemented: ClientRequest.options.createConnection
Ah, thanks, must've missed that
5 replies