Hello there.
I am having a bit of trouble importing the tween.min.js module in my project. The location is correct, I have tested that. However, the moment I try and call the module, it says "Cannot read property “Tween” of undefined.
My file structure is:
{
file : {
node_modules: {
three: {
examples: {
jsm: {
libs: {
tween.module.min.js
}
}
}
}
}
src: {
index.html
components: {
main.js (Call to module is made from here)
}
}
}
}
import { TWEEN } from "../../node_modules/three/examples/jsm/libs/tween.module.min";
let newTween = new TWEEN.Tween(startPos).to(endPos, 2000);
Any thoughts? suggestions?