Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to init CLI on Deno #798

Open
matlik opened this issue Feb 18, 2024 · 1 comment
Open

Failed to init CLI on Deno #798

matlik opened this issue Feb 18, 2024 · 1 comment
Labels
deno Not working in Deno

Comments

@matlik
Copy link

matlik commented Feb 18, 2024

Failing module

deno run -A -r https://esm.sh init

Error message

After running deno run I got this:

$ deno run -A -r https://esm.sh init
error: Uncaught (in promise) TypeError: Cannot convert undefined or null to object
    Object.entries(imports).sort(sortByValue),
           ^
    at Function.entries (<anonymous>)
    at sortImports (https://esm.sh/:427:12)
    at saveImportMap (https://esm.sh/:335:25)
    at Object.init (https://esm.sh/:183:11)
    at eventLoopTick (ext:core/01_core.js:153:7)
    at async https://esm.sh/:514:5

Additional info

This was attempted in a brand new project that was created via deno init.

  • Deno version:
      $ deno --version
      deno 1.40.5 (release, x86_64-unknown-linux-gnu)
      v8 12.1.285.27
      typescript 5.3.3
    
@matlik matlik added the deno Not working in Deno label Feb 18, 2024
@librejutsu
Copy link

librejutsu commented Feb 22, 2024

I actually got this:

Initialized deno.json, 3 task added:
  - deno task esm:add [packages...]
  - deno task esm:update [packages...]
  - deno task esm:remove [packages...]
✨ Done in 7.80ms

But nothing really changed, tasks were not really added to deno.json. Tried twice on a fresh install of Deno Fresh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deno Not working in Deno
Projects
None yet
Development

No branches or pull requests

2 participants