Sabah Kaldwin
Sabah Kaldwin12mo ago

deno info returns module not found

deno info https://raw.githubusercontent.com/Murcul/norm/v1.3.0/src/mod.ts
error: module could not be found
deno info https://raw.githubusercontent.com/Murcul/norm/v1.3.0/src/mod.ts
error: module could not be found
Trying to import that 3rd party public package causes the same issue with the same error. Replacing the url with the jsdelivr url however works fine
➜ ~ deno info https://cdn.jsdelivr.net/gh/Murcul/norm@1.3.0/src/mod.ts
local: ~/.cache/deno/deps/https/cdn.jsdelivr.net/bbeaaad832c8774b3e299316fc9f25ed226f0baa182998c761329515b85a02cc
emit: ~/.cache/deno/gen/https/cdn.jsdelivr.net/bbeaaad832c8774b3e299316fc9f25ed226f0baa182998c761329515b85a02cc.js
type: TypeScript
dependencies: 233 unique
size: 3.03MB

https://cdn.jsdelivr.net/gh/Murcul/norm@1.3.0/src/mod.ts (118B)
├─┬ https://cdn.jsdelivr.net/gh/Murcul/norm@1.3.0/src/type-generator.ts (3.47KB)
│ └─┬ https://cdn.jsdelivr.net/gh/Murcul/norm@1.3.0/src/deps.ts (768B)

// keeps going
➜ ~ deno info https://cdn.jsdelivr.net/gh/Murcul/norm@1.3.0/src/mod.ts
local: ~/.cache/deno/deps/https/cdn.jsdelivr.net/bbeaaad832c8774b3e299316fc9f25ed226f0baa182998c761329515b85a02cc
emit: ~/.cache/deno/gen/https/cdn.jsdelivr.net/bbeaaad832c8774b3e299316fc9f25ed226f0baa182998c761329515b85a02cc.js
type: TypeScript
dependencies: 233 unique
size: 3.03MB

https://cdn.jsdelivr.net/gh/Murcul/norm@1.3.0/src/mod.ts (118B)
├─┬ https://cdn.jsdelivr.net/gh/Murcul/norm@1.3.0/src/type-generator.ts (3.47KB)
│ └─┬ https://cdn.jsdelivr.net/gh/Murcul/norm@1.3.0/src/deps.ts (768B)

// keeps going
The jsdelivr trick does unblock me, but I can't update the actual file and push a commit as the raw.githubusercontent url works fine for all my coworkers. Any ideas of why the raw.githubusercontent url does not work?
4 Replies
Sabah Kaldwin
Sabah Kaldwin12mo ago
My deno environment
➜ ~ deno --version
deno 1.31.1 (release, x86_64-unknown-linux-gnu)
v8 11.0.226.13
typescript 4.9.4
➜ ~ deno --version
deno 1.31.1 (release, x86_64-unknown-linux-gnu)
v8 11.0.226.13
typescript 4.9.4
marvinh.
marvinh.12mo ago
That sounds like a bug. Best to create an issue for that here https://github.com/denoland/deno/issues
GitHub
Issues · denoland/deno
A modern runtime for JavaScript and TypeScript. Contribute to denoland/deno development by creating an account on GitHub.
Ayo Reis
Ayo Reis12mo ago
It works for me, maybe GitHub was down right when you tried, does it work now?
Sabah Kaldwin
Sabah Kaldwin12mo ago
sorry I got really busy with work and wasn't paying attention. I have been working on a WSL ubuntu environment and will make a bug ticket with more relevant info In the meantime, I found out that the same issue does not show up when I use the deno CLI in windows this seems to be specific to my wsl ubuntu environment, as I have other colleagues who also use wsl ubuntu but do not face the issue