Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#719 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
30/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
rust, wasm, webpack

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
4k
Forks
554
Merge medio
3 d 3 h
PR fusionados (30 d)
4

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de RustAudio/cpal

Todos los issues de RustAudio/cpal

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.