Skip to content

bug: build should swap - to _ for grabbing .wasm files #216

@dr-frmr

Description

@dr-frmr

Describe the bug

ERROR src/main.rs:1195:
   0: Command `wasm-tools ["component", "new", "target/wasm32-wasi/release/kimap-explorer.wasm", "-o", "../pkg/kimap-explorer.wasm", "--adapt", "target/wasi_snapshot_preview1.wasm"]` failed with exit code Some(1)
      stdout:
      stderr: error: failed to read from `target/wasm32-wasi/release/kimap-explorer.wasm`

      Caused by:
          0: No such file or directory (os error 2)
   0:

Location:
   src/build/mod.rs:190

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ SPANTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

   0: kit::build::run_command
      at src/build/mod.rs:165
   1: kit::build::compile_rust_wasm_process
      at src/build/mod.rs:487
   2: kit::build::compile_package_item
      at src/build/mod.rs:721

To Reproduce
Steps to reproduce the behavior:

  1. create app with - in name
  2. try to build

Expected behavior
build should expect that cargo/wasm will swap hyphens to underscores and try to match that (annoying) behavior

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions