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

Uncaught TypeError: class constructors must be invoked with 'new' when trying to create Physijs Scene #329

Open
NabeelUppel opened this issue May 19, 2021 · 3 comments

Comments

@NabeelUppel
Copy link

I keep getting this issue when I try to create a scene using
scene =new Physijs.Scene()
The console throw an issue on line 391 of physi.js

@jas-singh-code
Copy link

jas-singh-code commented May 28, 2021

I keep getting this issue when I try to create a scene using
scene =new Physijs.Scene()
The console throw an issue on line 391 of physi.js

I have the same issue! for me it says line 512. Any solutions yet?!

@aaronrobertson222
Copy link

I keep getting this issue when I try to create a scene using
scene =new Physijs.Scene()
The console throw an issue on line 391 of physi.js

I know this is 29 days old but check your Three.js version. Physijs hasn't been updated in a while and only works with older versions of Three as there have been changes to parts of Three.js. The Physijs examples are made with [email protected] so try using that version. All though I will say the latest version of Three I was able to get the Physijs example running with was [email protected].

@Biswayan375
Copy link

Thanks @aaronrobertson222 . Here is the direct link to Three.js 0.119.0 https://unpkg.com/browse/[email protected]/

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

4 participants