Skip to content

v1.0.102 breaks wasm builds with trunk #1113

Closed
@Kuuuube

Description

@Kuuuube

I depend on cc through zstd-safe (zstd-safe -> zstd-sys -> cc). v1.0.102 causes wasm builds through trunk (ex: trunk serve) to display the following error when accessing the wasm webpage.

Uncaught TypeError: The specifier “env” was a bare specifier, but was not remapped to anything. Relative module specifiers must start with “./”, “../” or “/”.

I've tested manually reverting cc through Cargo.lock and a clean build. In my testing, cc v1.0.101 does not have this issue.

Possibly related to #1105 and building with wasm32-unknown-unknown target.

Repo and build steps for reference (I've committed the cargo lock with v1.0.101 to mitigate this issue currently):
https://github.com/Kuuuube/hentaigana_input
https://github.com/Kuuuube/hentaigana_input/blob/main/.github/workflows/pages.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions