WARNING Multiple instances ofThree.js being imported

I’m getting this warning in the console. Is there anything I should do about it?

Original Post on Discord

by user 732122195614105653

It’s a known issue with vite currently, when hot reloading it can happen that the same “three” is loaded twice

it’s only happening during local working though, doesn’t happen in dev or production builds

I think it is caused by three mesh line which seems to include threejs in their package.

It is something on the list to look into and maybe remove the dependency and move it into a separate module
image.png

Ok it’s a combination of both:
I removed three meshline for testing - then there’s only one warning in local dev (so what Felix said) and when deployed there’s no warning anymore.