p5.js-sound icon indicating copy to clipboard operation
p5.js-sound copied to clipboard

Uncaught TypeError: Cannot read property 'connect' of undefined

Open jpcarroll opened this issue 5 years ago • 1 comments

Nature of issue?

  • [x] Found a bug
  • [ ] Existing feature enhancement
  • [ ] New feature request

Most appropriate sub-area of p5.js?

  • [ ] Color
  • [ ] Core/Environment/Rendering
  • [ ] Data
  • [ ] Events
  • [ ] Image
  • [x] IO (Microphone)
  • [ ] Math
  • [ ] Typography
  • [ ] Utilities
  • [ ] WebGL
  • [ ] Other (specify if possible)

Which platform were you using when you encountered this?

  • [ ] Mobile/Tablet (touch devices)
  • [x] Desktop/Laptop
  • [ ] Others (specify if possible)

Details about the bug:

  • p5.js version: p5.js v1.0.0
  • Web browser: Google Chrome Version 83.0.4103.116 (Official Build) (64-bit)
  • Operating System: macOS Catalina 10.15.5 (18G103)
  • I am trying to use p5 sound in Angular and I imported the files in the index.html image
  • However, it looks like it is throwing the error (shown below) just by importing the p5.sound.min.js file and without calling anything from the p5 library. image
  • Commenting out the import script for the p5 sound file gets rid of the error but obviously none of the functions are recognized. image image
  • Here is the code that is supposed to be using p5 sound: image Does anyone have any suggestions or advice on how I may be able to fix this?

jpcarroll avatar Jun 25 '20 04:06 jpcarroll

I'm getting the same issue now, did you ever figure out a fix?

Dylan1217 avatar May 09 '22 22:05 Dylan1217

I am also getting this error. Hoping someone figures out the fix

sagecorbett avatar Nov 19 '22 18:11 sagecorbett