Cannot compile or run a project with @std/dotenv when using --no-remote
- 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
Assessment
This issue has not been assessed yet.