p5.js-sound
p5.js-sound copied to clipboard
Uncaught TypeError: Cannot read property 'connect' of undefined
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

- 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.

- Commenting out the import script for the p5 sound file gets rid of the error but obviously none of the functions are recognized.

- Here is the code that is supposed to be using p5 sound:
Does anyone have any suggestions or advice on how I may be able to fix this?
I'm getting the same issue now, did you ever figure out a fix?
I am also getting this error. Hoping someone figures out the fix