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

instanciating a new mesh material has to be done with 'new' #147

Open
range-et opened this issue Nov 29, 2021 · 6 comments
Open

instanciating a new mesh material has to be done with 'new' #147

range-et opened this issue Nov 29, 2021 · 6 comments

Comments

@range-et
Copy link

Hello, I keep runnning into this error:

Uncaught TypeError: class constructors must be invoked with 'new'
    MeshLineMaterial THREE.MeshLine.js:499
    js app.js:26

and the line that it points to reads as:

const LineMaterial = new MeshLineMaterial({lineWidth: 0.1, color: new THREE.Color(white[0]/255, white[1]/255, white[2]/255),});

I think I am calling a new constructor right?

@jacopocolo
Copy link

Yes, you are and that's a strange error. There's a similar one here about class constructors not working with the latest versions of Three. Try using this fork and see if it works? It's here on npm.

@range-et
Copy link
Author

range-et commented Dec 4, 2021

Yes the new fork worked! Any plans to fix this with the new versions of Three?

@jacopocolo
Copy link

I'm not a maintainer and I'm not experienced enough to be one. But the answer is: it seems like this package is lacking an active maintainer. There are a few pull request in other issues that would fix the problem but no one to merge them into the main branch.

@range-et
Copy link
Author

range-et commented Dec 4, 2021

Hmm are they looking for maintainers?
I might know someone

@jacopocolo
Copy link

Not quite sure, there was a discussion here about it but it seems like it's not very active: #140

@edwonedwon
Copy link

I'm running into the same issue, someone needs to fix this on the main branch

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