irh / freeverb-rs

A Rust implementation of the Freeverb algorithm
MIT License
215 stars 23 forks source link

Problem with `npm run serve` #7

Closed humbleaudio closed 3 years ago

humbleaudio commented 3 years ago
# npm run serve

> @ serve /root/freeverb-rs/examples/wasm
> webpack-dev-server

ℹ 「wds」: Project is running at http://localhost:8080/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /root/freeverb-rs/examples/wasm
✖ 「wdm」: Hash: 88685572c2e72c81d1d7
Version: webpack 4.46.0
Time: 1297ms
Built at: 02/10/2021 11:08:40 PM
   Asset     Size  Chunks             Chunk Names
index.js  365 KiB    main  [emitted]  main
Entrypoint main = index.js
[0] multi (webpack)-dev-server/client?http://localhost:8080 ./index.js 40 bytes {main} [built]
[./index.js] 2.14 KiB {main} [built]
[./node_modules/ansi-html/index.js] 4.16 KiB {main} [built]
[./node_modules/html-entities/lib/index.js] 449 bytes {main} [built]
[./node_modules/loglevel/lib/loglevel.js] 8.41 KiB {main} [built]
[./node_modules/url/url.js] 22.8 KiB {main} [built]
[./node_modules/webpack-dev-server/client/index.js?http://localhost:8080] (webpack)-dev-server/client?http://localhost:8080 4.29 KiB {main} [built]
[./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.51 KiB {main} [built]
[./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.53 KiB {main} [built]
[./node_modules/webpack-dev-server/client/utils/createSocketUrl.js] (webpack)-dev-server/client/utils/createSocketUrl.js 2.91 KiB {main} [built]
[./node_modules/webpack-dev-server/client/utils/log.js] (webpack)-dev-server/client/utils/log.js 964 bytes {main} [built]
[./node_modules/webpack-dev-server/client/utils/reloadApp.js] (webpack)-dev-server/client/utils/reloadApp.js 1.59 KiB {main} [built]
[./node_modules/webpack-dev-server/client/utils/sendMessage.js] (webpack)-dev-server/client/utils/sendMessage.js 402 bytes {main} [built]
[./node_modules/webpack-dev-server/node_modules/strip-ansi/index.js] (webpack)-dev-server/node_modules/strip-ansi/index.js 161 bytes {main} [built]
[./node_modules/webpack/hot sync ^\.\/log$] (webpack)/hot sync nonrecursive ^\.\/log$ 170 bytes {main} [built]
    + 18 hidden modules

ERROR in ./index.js
Module not found: Error: Can't resolve './freeverb_wasm' in '/root/freeverb-rs/examples/wasm'
 @ ./index.js 1:13-38
ℹ 「wdm」: Failed to compile.
humbleaudio commented 3 years ago

I'm having some trouble getting the wasm example to work. I know this project is vintage circa 2018 edition's release, so maybe there's just a quick fix there. Any guidance would be appreciated!

irh commented 3 years ago

Hi 👋

I just checked and the wasm example's working for me. In your log it looks like it can't find the compiled wasm.. Did you run ./build.sh before npm run serve?

The readme was written in a hurry and wasn't clear so I just tried to clean it up a bit.

Now you can run

npm install
npm run wasm
npm run serve

Please let me know if that helps.

humbleaudio commented 3 years ago

Ah, the old build.sh trick. Thanks, Ian. I'm sorted!

w

On Tue, Feb 16, 2021 at 1:46 AM Ian Hobson notifications@github.com wrote:

Hi 👋

I just checked and the wasm example's working for me. It looks like it can't find the compiled wasm.. Did you run ./build.sh before npm run serve ?

The readme was written in a hurry and wasn't clear so I just tried to clean it up a bit.

Now you can run

npm install

npm run wasm

npm run serve

Please let me know if that helps.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/irh/freeverb-rs/issues/7#issuecomment-779715217, or unsubscribe https://github.com/notifications/unsubscribe-auth/APHMLXMVUBPQUXNMNFLAQCTS7I5HJANCNFSM4XN2VXYQ .