Tween module not loading

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: {
src: {
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?

The libs directory is not included in the three npm package. Please use the official package of tween.js:

1 Like

Ah! That clarifies. Thank you very much! Have a great day!