processing / p5.js

p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Processing. http://twitter.com/p5xjs —
http://p5js.org/
GNU Lesser General Public License v2.1
21.11k stars 3.22k forks source link

import p5 sound in next js #6973

Closed ayushi15092002 closed 1 month ago

ayushi15092002 commented 2 months ago

Topic

when I'm importing p5 sound in next js, getting error ( ReferenceError: window is not defined )

I want to know how to import it in next js and rightly use it?

welcome[bot] commented 2 months ago

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, please make sure to fill out the inputs in the issue forms. Thank you!

limzykenneth commented 1 month ago

Hi, importing p5.js or p5 sound to be bundled as part of a larger client code base is not something that is tested nor necessarily supported, at least at this stage.

In general, if you need help with your own code, please direct your questions to the forum or Discord. We use GitHub issues mainly for bug reports and feature requests only. Thanks!