Skip to content

wasm-tool producing error when auto-reloading from multiple served projects #145

@JSmithOner

Description

@JSmithOner

I am running an angular app and I'm running two times the same project on different ports to test it locally.

after reloading and while building one of the project compiles fine be the other fails with this error.

ERROR in Rust compilation.
Error: Rust compilation.
    at ChildProcess.<anonymous> (/Users/cc/Documents/code/projects/my-project/node_modules/@wasm-tool/wasm-pack-plugin/plugin.js:236:24)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1093:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)

I suspect this is the cache or maybe two files that are modified at the same time producing a race condition (rarely both works, but the compilation works for both the first time I run ng serve) any ideas?

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