Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native p5 classes (like p5.Vector) are undefined #138

Open
gwezerek opened this issue Apr 20, 2022 · 1 comment
Open

Native p5 classes (like p5.Vector) are undefined #138

gwezerek opened this issue Apr 20, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@gwezerek
Copy link

gwezerek commented Apr 20, 2022

Describe the bug
Good evening! I've been trying to get some of the p5-sound classes, like p5.Amplitude(), to work with this library. Unfortunately they remain undefined.

I noticed in the closed issues and 3.0 release that there was an attempt to fix the constructor issue. It doesn't seem to be working, based on everything I tried and the repl below.

(Thank you for making this library, btw!)

To Reproduce
See the undefined in the console here:
https://svelte.dev/repl/24a6a55ff03c4a65bf1b24fb58d4d575?version=3.31.2

@gwezerek gwezerek added the bug Something isn't working label Apr 20, 2022
@geshl
Copy link

geshl commented Sep 24, 2023

If anyone is facing the same issue this may help: https://stackoverflow.com/questions/76465196/how-to-extend-a-p5js-class-in-svelte.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants