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

TypeError: p5.loadSound is not a function #278

Closed
Tebesski opened this issue Oct 18, 2023 · 3 comments
Closed

TypeError: p5.loadSound is not a function #278

Tebesski opened this issue Oct 18, 2023 · 3 comments

Comments

@Tebesski
Copy link

Expected Behavior

loadSound function loads sound

Actual Behavior

TypeError: p5.loadSound is not a function

Steps to Reproduce the Problem

  1. use p5.loadSound function as per the documentation

Specifications

Package Version:
4.2.0

@jamesrweb
Copy link
Collaborator

jamesrweb commented Oct 18, 2023

Please read through the project documentation, there's a whole example on how to use external libraries, plugins and constructors such as sound, vector, etc there.

@CharlesFauman
Copy link

Hello, I've been trying and failing for about two hours to get sound working as well.

As the user here I think was trying to say, the exact code in the documentation on how to use p5.loadSound does not work locally for me, on the latest packages.

I'm using bun + vite + this library - I get p5.loadSound is not a function running the example from the readme.

"@p5-wrapper/react": "^4.3.4"
"p5": "^1.9.0"

@jamesrweb
Copy link
Collaborator

Then you need to show me that that is the case with a sample project, which uses the example exactly as provided, in your setup as a replication and with a build showing it doesn't work for you, because I test all the examples before releasing new package versions and it's fine for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants