Uncaught TypeError: Class extends value undefined is not a constructor or null #1115
-
Uncaught TypeError: Class extends value undefined is not a constructor or null |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
needs more descriptions. specifically your building environment. |
Beta Was this translation helpful? Give feedback.
-
@0b5vr I'm trying to import the downloaded file in my js file. Here is the code. import * as THREE_VRM from 'three-vrm.js'; This line alone is giving me the above-mentioned error and when I click on the links in the error, it redirects me to the three-vrm.js file and highlights the VRM_EXPRESSION class. |
Beta Was this translation helpful? Give feedback.
-
Are you trying to use the three-vrm on bare HTML with I think you would want to use the Also, make sure you read the installation document of the Three.js side: |
Beta Was this translation helpful? Give feedback.
Are you trying to use the three-vrm on bare HTML with
import
syntax?Are you not using any packers or bundlers?
I think you would want to use the
three-vrm.module.js
version instead.Also, make sure you read the installation document of the Three.js side:
https://threejs.org/docs/#manual/en/introduction/Installation