Skip to content

Error running porter serve --config ~/.porter/config.json: "@std/path" not a dependency #1

Description

@Tomboyo

After installing deno and porter for the first time, I ran porter serve --config ~/.porter/config.json It failed with the following message:

$ porter serve --config ~/.porter/config.json 
[porter] Starting Porter Platform (dynamic session mode)
error: Uncaught (in promise) TypeError: Import "@std/path" not a dependency
  hint: If you want to use the JSR package, try running `deno add jsr:@std/path`
    at file:///home/thsimmon.rsync/source/forks/porter/src/orchestration/message_store.ts:8:25
  const { SessionManager } = await import("../orchestration/session_manager.ts");
                             ^
    at async cmdServe (file:///home/thsimmon.rsync/source/forks/porter/src/cli/serve.ts:22:30)
    at async main (file:///home/thsimmon.rsync/source/forks/porter/cli.ts:125:7)
    at async file:///home/thsimmon.rsync/source/forks/porter/cli.ts:166:3

When I instead run deno run --allow-all cli.ts serve --config ~/.porter/config.json, everything works as expected. The bin installed by deno doesn't appear to understand the deno.json aliases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions