denoland / denoland/std

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

Open
#6,443 4 comments 0 reactions 0 assignees View on GitHub
bug needs triage
Dominant language
TypeScript
Stars
3.6k
Forks
681
PR merge metrics
No merged PRs in 30d

Description

**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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.