hasundue / molt

Update dependencies the Deno way
https://jsr.io/@molt
MIT License
78 stars 5 forks source link

cli, core: TypeError on unused dependency #209

Closed hasundue closed 1 month ago

hasundue commented 1 month ago

Example:

error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'jsr:@std/yaml@^1.0.0')
  const id = lockfile.packages?.specifiers[req];
                                          ^
    at Module.query (https://jsr.io/@molt/core/0.19.1/locks.ts:301:43)
    at https://jsr.io/@molt/core/0.19.1/mod.ts:70:34
    at associateWith (https://jsr.io/@std/collections/1.0.5/associate_with.ts:42:23)
    at new Context (https://jsr.io/@molt/core/0.19.1/mod.ts:67:19)
    at collect (https://jsr.io/@molt/core/0.19.1/mod.ts:165:15)
    at eventLoopTick (ext:core/01_core.js:168:7)
    at async Command.actionHandler (https://jsr.io/@molt/cli/0.19.0/main.ts:64:16)
    at async Command.execute (https://jsr.io/@cliffy/command/1.0.0-rc.5/command.ts:1940:7)
    at async Command.parseCommand (https://jsr.io/@cliffy/command/1.0.0-rc.5/command.ts:1772:14)
    at async https://jsr.io/@molt/cli/0.19.0/main.ts:113:1