Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#719 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
rust, wasm, webpack

Direzione di ricerca

Start with the README and index.js in examples/wasm-beep, then check how the example is built and where its pkg import is expected to come from. Reproduce the documented npm install and npm start steps; done means the example builds and the play button produces sound. The issue has had no response for years, so confirm the current setup before taking it on.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

dependencies platform - web

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.

Lingua principale
Rust
Stelle
4k
Fork
554
Merge medio
3g 3h
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di RustAudio/cpal

Tutte le issue di RustAudio/cpal

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.