P5JS instance mode with sound library is throwing error

Viewed 156

Here is my codepen. I was trying to write simple music player using instance mode in p5js but sound extension of p5js causing problems. I don't know how to fix it. Is it a bug in the latest version of p5js?

Also, my devtool is keep freezing when I use p5js library. ]

Below is the error I get when I include sound lib in instance mode.

p5.min.js:3 Uncaught (in promise) TypeError: this._userNode.appendChild is not a function
    at _.l.default.createCanvas (p5.min.js:3)
    at _setup (p5.min.js:3)
    at _runIfPreloadsAreDone (p5.min.js:3)
    at _decrementPreload (p5.min.js:3)
    at _.<anonymous> (p5.sound.min.js:2)

here is my codepen

0 Answers
Related