p5 is undefined error when using p5.dom.js library

I was trying to implement fractal trees using recursion and for that I needed to use the the createSlider() function so I used the p5.dom library since that is where it is defined. But when I run my page on Chrome it says undefined property 'prototype' on line 71 and Firefox says p5 isn't defined on line 71 and both of these are for the p5.dom library. I also included p5.js since it's required to use draw () and setup(). Help me out here?

Sign In or Register to comment.