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

missing ./pkg/rust_3d_demo in linux #6

Open
alemer opened this issue Aug 16, 2021 · 1 comment
Open

missing ./pkg/rust_3d_demo in linux #6

alemer opened this issue Aug 16, 2021 · 1 comment

Comments

@alemer
Copy link

alemer commented Aug 16, 2021

Hi,
I just tried to get this to run, however after executing commands in the readme,

  1. rustup target add wasm32-unknown-unknown
  2. cargo build
  3. npm install
  4. npm run dev

I get error message saying "./pkg/rust_3d_demo" not found. I do have the target folder with all the artifacts and cargo build returns successfully.

My System:
Linux
npm - 7.20.3
node - v16.6.1
rustup 1.22.1 (b01adbbc3 2020-07-08)
cargo 1.46.0 (149022b1d 2020-07-17)

Thanks alot

@paolobettelini
Copy link

Hi,
you can use the wasm-pack command which you might need to install
wasm-pack build --out-dir pkg
This will generate the missing module in the right folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants