Using Lanyard on a NextJS application #569
|
I was trying to use the Lanyard on my NextJS application and I get this error react-reconciler.development.js:7191 Uncaught TypeError: Class constructor MeshLineGeometry cannot be invoked without 'new' I am new to this, can anyone help me here |
Answered by
IvanPavlovic-web
Jan 8, 2026
Replies: 1 comment
|
Hey @Fifinixx, Lanyard uses MeshLine, which is an old library and doesntt work with newer versions of Three.js, so you end up with that error... The best solution is to avoid Lanyard and use I did notice you posted this on Oct 13th 💀but I hope it helps hahaha. Good Luck! |
0 replies
Answer selected by
Fifinixx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @Fifinixx,
Lanyard uses MeshLine, which is an old library and doesntt work with newer versions of Three.js, so you end up with that error...
The best solution is to avoid Lanyard and use
@react-three/dreiinstead. Its actively maintained and has aLinecomponent that works out of the box. If you really need to use Lanyard, then downgrade Three.js to an older version, for examplethree@0.133.0.I did notice you posted this on Oct 13th 💀but I hope it helps hahaha. Good Luck!