cpal icon indicating copy to clipboard operation
cpal copied to clipboard

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

Open adenflorian opened this issue 3 years ago • 2 comments

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.

adenflorian avatar Nov 02 '22 22:11 adenflorian

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

est31 avatar Nov 02 '22 23:11 est31

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.

adenflorian avatar Nov 02 '22 23:11 adenflorian