Open proelf98 opened 1 year ago
Hi @proelf98, Could you share a minimal reproductible repo ?
Here is a minimal rep: https://github.com/proelf98/next-app-three-mesh-ui hope this helps
Whereas I wasn't being able to solve the issue, I still manage to get some clues.
The issue seems to come from when the project tries to import the "js" version (global lib) of three-mesh-ui. This version requires js version of three to be globally loaded first. https://github.com/felixmariotto/three-mesh-ui#js
When I've tried to force importing the module version of tree-mesh-ui I had errors about disallowing imports outside of modules. You can check this issue to know how I tried it #213
Do you have any hints why this is happening ?
any update?
now i've added this library in my project by just copy and paste "/src"of this repo in project directory...
I am using react three fiber with Next.js. But when trying to import three-mesh-ui I get the following error. I am not sure what I am doing wrong. Any ideas?
I've installed
my dependencies