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

Built app WASM issue after upgrading to 0.13.1 #624

Open
Noobulater opened this issue Apr 24, 2024 · 2 comments
Open

Built app WASM issue after upgrading to 0.13.1 #624

Noobulater opened this issue Apr 24, 2024 · 2 comments

Comments

@Noobulater
Copy link

After upgrading from ^0.11.2, and then building using vite build, the resulting app will encounter this issue when creating a new physics world. Tested using https://github.com/viridia/demo-rapier-three

Steps to reproduce
1.) Install the repo https://github.com/viridia/demo-rapier-three
2.) Upgrade rapier to the latest version
3.) Build using npm run build
4.) Serve the resulting dist directory and test the app

Resulting Behavior
rapier-be6a9884.js:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'rawintegrationparameters_new')
at new tt (rapier-be6a9884.js:1:30250)
at new Me (rapier-be6a9884.js:1:71843)
at new Dt (rapier-be6a9884.js:1:100396)
at mp.attach (index-4c621a1f.js:3191:107366)
tt @ rapier-be6a9884.js:1
Me @ rapier-be6a9884.js:1
Dt @ rapier-be6a9884.js:1
attach @ index-4c621a1f.js:3191
await in attach (async)
fp @ index-4c621a1f.js:3191
(anonymous) @ index-4c621a1f.js:3191

On Engine.ts line 90

this.physicsWorld = new r.World(gravity);

Expected Behavior
The physics world is created and physics works successfully

@Noobulater
Copy link
Author

Still an issue with 0.13.1

@Noobulater Noobulater changed the title Built app WASM issue after upgrading to 0.12.0 Built app WASM issue after upgrading to 0.13.1 May 21, 2024
@EyeOfMidas
Copy link

I am also having this issue. vite build works fine but when I try to view the built project, I get the same error Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'rawintegrationparameters_new') in the browser window.

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

2 participants