wasm-pack icon indicating copy to clipboard operation
wasm-pack copied to clipboard

Noinstall mode is not recognized

Open SamNelson opened this issue 5 years ago • 1 comments

🐛 Bug description

Running wasm-pack new myproject --mode noinstall on wasm-pack 0.9.1 generates the following error. error: Invalid value for '--mode <mode>': Unknown build mode: noinstall

🤔 Expected Behavior

wasm-pack should have created a new project if all underlying tools are available. Otherwise it should fail in whatever way is appropriate when the particular tool is missing.

👟 Steps to reproduce

Running: wasm-pack new myproject --mode noinstall Give the following error: error: Invalid value for '--mode <mode>': Unknown build mode: noinstall

🌍 Your environment

wasm-pack version: 0.9.1 rustc version: 1.49.0 (e1884a8e3 2020-12-29)

SamNelson avatar Feb 05 '21 13:02 SamNelson

looks like documentation is not up to date. it is "no-install" now https://github.com/rustwasm/wasm-pack/blob/master/src/install/mode.rs

dragan-novakovic avatar Mar 01 '21 20:03 dragan-novakovic