Skip to content

Cannot compile or run a project with @std/dotenv when using --no-remote #6443

Open
@sadika9

Description

@sadika9

Describe the bug

Cannot compile or run a project with @std/dotenv when using --no-remote as it fails with following error.

error: JSR package manifest for '@std/dotenv' failed to load. A remote specifier was requested: "https://jsr.io/@std/dotenv/meta.json", but --no-remote is specified.
    at file:///home/[REMOVED]/test_no_remote_dotenv/main.ts:1:8

Steps to Reproduce

Example

  1. Create deno project deno init test_no_remote_dotenv
  2. Install dotenv package deno add jsr:@std/dotenv
  3. Edit main.ts file and add import "@std/dotenv/load"; line to start of the file
  4. Run app using deno run --no-remote main.ts
  5. See the error

Expected behavior

App runs without an error.

Environment

  • OS: Arch Linux
  • deno version: 2.2.1
  • std version: @std/dotenv@^0.225.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions