You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm working on a p5 game that requires p5.play library. Since it's not in the ecosystem, I dragged the p5.play into the p5 node_module and use 'import "p5/lib/addons/p5.play"; to import it. However, I still can't use the p5.play function. Can anyone help me solve it?
Thanks!
Update: I forgot to import * as p5 from 'p5' - it also only works for react-p5-wrapper but not react-p5 somehow :(
The text was updated successfully, but these errors were encountered:
Hi, I'm working on a p5 game that requires p5.play library. Since it's not in the ecosystem, I dragged the p5.play into the p5 node_module and use
'import "p5/lib/addons/p5.play";
to import it. However, I still can't use the p5.play function. Can anyone help me solve it?Thanks!
Update: I forgot to
import * as p5 from 'p5'
- it also only works for react-p5-wrapper but not react-p5 somehow :(The text was updated successfully, but these errors were encountered: