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

wasm-beep example "can't resolve './pkg'" #719

Open
adenflorian opened this issue Nov 2, 2022 · 2 comments
Open

wasm-beep example "can't resolve './pkg'" #719

adenflorian opened this issue Nov 2, 2022 · 2 comments

Comments

@adenflorian
Copy link

I followed the readme in the examples/wasm-beep folder, which said to run npm install then npm start. After running npm start it seems to mostly work, browser pops up to the page with the play and stop buttons, but there's an error in the terminal where I ran npm start:

ERROR in ./index.js
Module not found: Error: Can't resolve './pkg' in 'C:\Users\David\Projects\personal\rust-learn\cpal\examples\wasm-beep'

And no sound is heard when pressing the play button. I can't tell what pkg is supposed to be, or where to get it, so maybe something missing in the instructions? Or something else changed.

@est31
Copy link
Member

est31 commented Nov 2, 2022

Did npm install work for you without any issues? Maybe something has been broken in the meantime since the example has been added.

@adenflorian
Copy link
Author

Did npm install work for you without any issues? Maybe something has been broken in the meantime since the example has been added.

yes, npm install ran without errors. npm version 8.5.5.

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