Replies: 1 comment 3 replies
-
what bundler are you using? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
One of the problems that I have always had in three.js is that that loaders simple do not work. I have abandoned whole projects because of this and worked around it time after time. I really need this to work, but it doesn't. Attempting to import a loader for a gltf or an obj file like this...
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
Always results in an error like a syntax error for a semicolon that points here ...
module.exports = require("three/examples/jsm/loaders/GLTFLoader");
I have tried probably 20 different ways to make this happen and the simple fact is that this does not work. I was hoping that by some miracle r3f would correct this, but the problem persists. Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions