Skip to content

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

Closed

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.

Activity

  1. added
    bugSomething isn't working
    on May 9, 2026
  2. chmac commented on May 9, 2026

    @chmac
    Author

    Update: I get the same error just trying to run deno cache.

  3. added this to the v3 milestone on Oct 14, 2026
  4. self-assigned this
    on Oct 14, 2026
  5. matmen commented on Oct 14, 2026

    @matmen
    Collaborator

    Fixed in 3.0.0: ImageScript no longer ships any WebAssembly or native binaries. Every codec is plain TypeScript, so there’s nothing to load, bundle or compile per platform, and it runs on Alpine/musl, in bundled serverless functions, Deno, Bun and browsers. npm install imagescript@3; see the changelog for breaking changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions