Communities for your favorite technologies. Explore all Collectives
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
import * as THREEObjLoader from 'three-obj-loader';
const objLoader = new THREEObjLoader(THREE);
objLoader is undefined.
Could someone let me know why the object instance is not created?
Please do not use the three-obj-loader package anymore. Instead you can import all examples JS files from the main repository (three). For OBJLoader, it looks like so:
three-obj-loader
three
OBJLoader
import { OBJLoader } from 'three/examples/jsm/loaders/OBJLoader.js';
Add a comment
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.