Skip to content

parse exception: duplicate export name #8075

@Madoshakalaka

Description

@Madoshakalaka

Some of Yew's example crates (but not all) fail to build in our binary size comparison CI because of wasm-opt

https://github.com/yewstack/yew/actions/runs/19726188911/job/56517994922?pr=3949#step:9:676

  [parse exception: duplicate export name (at 0:8529)]
  Fatal: error parsing wasm (try --debug for more info)
  2025-11-27T05:32:21.251418Z ERROR ❌ error
  error from build pipeline
  
  Caused by:
      0: HTML build pipeline failed (1 errors), showing first
      1: error from asset pipeline
      2: running wasm-opt
      3: wasm-opt call to executable '/home/runner/.cache/trunk/wasm-opt-version_125/bin/wasm-opt' with args: '["--output=/home/runner/work/yew/yew/target/wasm-opt/release/function_router_bg.wasm", "-O", "/home/runner/work/yew/yew/dist/function_router/.stage/function_router-93f56f6c1d2b72c_bg.wasm"]' returned a bad status: exit status: 1
  2025-11-27T05:32:21.251443Z ERROR error from build pipeline
  2025-11-27T05:32:21.251452Z  INFO   1: HTML build pipeline failed (1 errors), showing first
  2025-11-27T05:32:21.251454Z  INFO   2: error from asset pipeline
  2025-11-27T05:32:21.251455Z  INFO   3: running wasm-opt
  2025-11-27T05:32:21.251456Z  INFO   4: wasm-opt call to executable '/home/runner/.cache/trunk/wasm-opt-version_125/bin/wasm-opt' with args: '["--output=/home/runner/work/yew/yew/target/wasm-opt/release/function_router_bg.wasm", "-O", "/home/runner/work/yew/yew/dist/function_router/.stage/function_router-93f56f6c1d2b72c_bg.wasm"]' returned a bad status: exit status: 1

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