HewloThere
deno gives 401 unauthorized for imports with an `npm:` specifier, but npm, yarn and pnpm all work?
have added a comment here that i managed to resolve it for myself https://github.com/denoland/deno/issues/26033#issuecomment-2422657021
25 replies
Type resolution for modules imported with `npm:` specifier
i think i figured out that the missing node types error only happens if you don't explicitly install
@types/node
, because vite
only has it as a dev dependency
after installing them, it seems to work. so i don't think the node types needs to be an issue?
but the esbuild type resolution issue still happens regardless. i added a comment on the github issue you made earlier with some weird edge cases or whatever i found. not sure if helpful26 replies
Type resolution for modules imported with `npm:` specifier
err sorry if my question was confusing.
i was meaning more so, if it is a problem with how deno does module resolution or if it's just a problem with the language server.
not sure if same answer? the deno language server is definitely enabled tho
26 replies
Type resolution for modules imported with `npm:` specifier
ah i see, sorry i was looking here. probably a bit outdated https://docs.deno.com/runtime/reference/ts_config_migration/#suppling-"types"-in-deno.json
26 replies
Type resolution for modules imported with `npm:` specifier
heya, sorry for another message - i'm going to reply to the github issue soon, after i attempt to pinpoint the issue a little bit but just had a quick question while i do that.
if i have
@types/node
as a (dev) dependency in my package.json
, if i want deno to use those types in compilerOptions.types
, is the correct thing to do this?
deno.json
package.json
26 replies
deno gives 401 unauthorized for imports with an `npm:` specifier, but npm, yarn and pnpm all work?
sorry for delay, i posted it here: https://github.com/denoland/deno/issues/26033
25 replies
deno gives 401 unauthorized for imports with an `npm:` specifier, but npm, yarn and pnpm all work?
sorry will try make in a bit 🙂
i ran
npm config ls -l
, which to my understanding, prints the fully resolved config for npm (along with the file/place it came from).
i attached the result after replacing my username with myusername
and my company with mycompany
(nothing else changed)
i also ran
yarn config --json
(and converted the newline-delimited json to a json array) and did the same replacements and uploaded that25 replies