You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import {
MathUtils,
Object3D,
PerspectiveCamera,
Scene,
} from 'three';
I reckon since Parcel is not aware of the imports in 3d_demo.js, they are not included in the bundle, so the app fails. What is the proper way to load these modules IFF WebGL.isWebGLAvailable() returns true?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use Parcel to build a three.js project, but it's not working when I try to load another module dynamically.
index.html:
3d_demo.js:
I reckon since Parcel is not aware of the imports in 3d_demo.js, they are not included in the bundle, so the app fails. What is the proper way to load these modules IFF
WebGL.isWebGLAvailable()
returns true?Beta Was this translation helpful? Give feedback.
All reactions