Skip to content

[BUG] Import "env" not a dependency and not in import map #45

@chmac

Description

@chmac

Describe the bug
Upgrading from 1.3.0 to 1.4.0 I get this error:

error: Import "env" not a dependency and not in import map from "https://deno.land/x/imagescript@1.4.0/utils/wasm/gif.wasm"
    at https://deno.land/x/imagescript@1.4.0/utils/wasm/gif.wasm:1:60

To Reproduce
Steps to reproduce the behavior:

  1. Create a deno file with an import_map.json like:
    "imagescript": "https://deno.land/x/imagescript@1.4.0/mod.ts",
  2. import { Image } from "imagescript";

Expected behavior
The library should import

Platform:

  • OS: [e.g. iOS, Windows]
  • Environment deno
  • Version: deno 2.7.14 (stable, release, aarch64-apple-darwin)

Additional context
I don't see this issue if I change to 1.3.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions