pmndrs / gltfjsx

🎮 Turns GLTFs into JSX components
https://gltf.pmnd.rs
MIT License
4.7k stars 309 forks source link

Using gltfjsx in Next.js - No "exports" main defined in /node_modules/@monogrid/gainmap-js/package.json #252

Open PrimozRome opened 6 months ago

PrimozRome commented 6 months ago

I am trying to use this in the Next.js app ("next": "^12.3.0") to load my GLTF model, but I am getting this error:

Error: No "exports" main defined in /Users/primozrome/Documents/WEB/dewesoft-website/node_modules/@monogrid/gainmap-js/package.json This error happened while generating the page. Any console logs will be displayed in the terminal window.

Does someone know what is wrong?