-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Thanks for your package - it has been quite helpful!
But now i stumbled upon a serious issue with my application.
I am using "createGraphics()" to create an imageMask.
Everything works fine on the first load. But when I leave the route with "vue-p5" of my Vue application and then re-enter it, it seems like p5 crashes:
[Vue warn]: Error in mounted hook: "TypeError: b.prototype._registeredMethods[u].slice is not a function"
found in
VueP5
TypeError: b.prototype._registeredMethods[u].slice is not a function
at new b (vue-p5.js?e25d:24)
at VueComponent.mounted (vue-p5.js?e25d:75)
I've tried to put .createGraphics() into the preload-, the setup, or the draw-method. It's the same everywhere.
On the first load everything works fine - leaving and re-entering the route crashes vue-p5.
This seems closely connected to the usage of createGraphics() - as soon as I am not using this method, the errors are gone.