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

React example #47

Closed
CarstenHoyer opened this issue Nov 16, 2023 · 2 comments
Closed

React example #47

CarstenHoyer opened this issue Nov 16, 2023 · 2 comments

Comments

@CarstenHoyer
Copy link

Hi, this is not actually an issue, but I was hoping we could figure this out in plenum :)

This code sandbox work well.

https://codesandbox.io/p/sandbox/jolt-physics-react-three-fiber-demo-hxkkje?file=%2Fsrc%2FApp.tsx%3A6%2C41

But it uses an old version of jolt-pysics.js ("^0.0.10").

When I create a new site project, and add "^0.6.3", I run into this issue: vitejs/vite#14169

I suspect that it is because I need to use a new form of import and initialisation (as per the readme).

But I have not had any luck making it work yet.

@CarstenHoyer
Copy link
Author

Closing this. The problem seems to be with Vite

@CarstenHoyer
Copy link
Author

Just FYI. I got it working with Vite ^3.0.0 - but it was not working with Vite ^5.0.0 - if you want to investigate it.

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

1 participant