Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run-script build on an unchanged template fails #150

Open
anlumo opened this issue Jun 23, 2019 · 1 comment
Open

npm run-script build on an unchanged template fails #150

anlumo opened this issue Jun 23, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@anlumo
Copy link

anlumo commented Jun 23, 2019

Describe the Bug

I can't build a project created from this template for deployment (the dev server works fine).

Steps to Reproduce

  1. Created new project with npx github:rustwasm/rust-webpack-template wasm-test-webpack
  2. Built project with npm run-script build

Expected Behavior

A compiled project in dist.

Actual Behavior

> rust-webpack-template@0.1.0 build …\wasm-test-webpack
> rimraf dist pkg && webpack

🧐  Checking for wasm-pack...

✅  wasm-pack is installed. 

ℹ️  Compiling your crate in release mode...

[INFO]: Checking for the Wasm target...
[INFO]: Compiling to Wasm...
Compiling proc-macro2 v0.4.30
Compiling unicode-xid v0.1.0
Compiling cc v1.0.37
Compiling libc v0.2.58
Compiling syn v0.15.37
Compiling version_check v0.1.5
Compiling wasm-bindgen-shared v0.2.47
Compiling autocfg v0.1.4
Compiling memchr v2.2.0
Compiling failure_derive v0.1.5
Compiling cfg-if v0.1.9
Compiling lazy_static v1.3.0
Compiling bumpalo v2.4.3
Compiling rustc-demangle v0.1.15
Compiling unicode-segmentation v1.3.0
Compiling wasm-bindgen v0.2.47
Compiling sourcefile v0.1.4
Compiling backtrace v0.3.31
Compiling nom v4.2.3
Compiling log v0.4.6
Compiling heck v0.3.1
Compiling backtrace-sys v0.1.28
Compiling weedle v0.9.0
Compiling quote v0.6.12
Compiling synstructure v0.10.2
Compiling wasm-bindgen-backend v0.2.47
Compiling wasm-bindgen-macro-support v0.2.47
Compiling wasm-bindgen-macro v0.2.47
Compiling js-sys v0.3.24
Compiling console_error_panic_hook v0.1.6
Compiling failure v0.1.5
Compiling wasm-bindgen-webidl v0.2.47
Compiling web-sys v0.3.24
Compiling rust-webpack-template v0.1.0 (…\wasm-test-webpack)
    Finished release [optimized] target(s) in 1m 46s
[INFO]: Installing wasm-bindgen...
thread 'main' panicked at 'assertion failed: !self.dead.contains(&id)', C:\Program Files\Rust\.cargo\registry\src\git.luolix.top-1ecc6299db9ec823\walrus-0.8.0\src\tombstone_arena.rs:139:9
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
Error: Running the wasm-bindgen CLI
Caused by: failed to execute `wasm-bindgen`: exited with exit code: 101
wasm-pack error: undefined
Hash: 634c67c8e1dd2cafc652
Version: webpack 4.35.0
Time: 108201ms
Built at: 2019-06-23 19:22:35
1 asset
Entrypoint index = index.js
[0] ./js/index.js 49 bytes {0} [built]

ERROR in ./js/index.js

Additional Context

I have an older instance of this template on a project of mine which works fine, so I don't think that it's my development environment.

@anlumo anlumo added the bug Something isn't working label Jun 23, 2019
@Pauan
Copy link
Contributor

Pauan commented Jun 23, 2019

Please see rustwasm/wasm-bindgen#1613

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants