Currently in the process of transforming an html project into a laravel/vue setup, I stumbled upon a three.min.js file within the original html project. Unfortunately, the version of this file remains elusive to me along with some custom script files.
To remedy this, I imported all the necessary files for my vue component. However, issues persist with the three.min.js file prompting me to install version r69 of three.js due to recent changes in geometry structures. One of the custom scripts named test.js relies on three.js and has led to the following error in my console log:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'length') at test.js?t=1674045010699:37:39
The code snippet from test.js is as follows:
import * as THREE from "three";
// import ('../../assets/js/three.min.js')
// import "../js/anime.js"
// import "../js/three.js"
var canvas = document.querySelector("#scene");
// rest of the code...
While encountering these errors, it's worth mentioning that my primary objective revolves around converting the entire project into vue/laravel. If anyone has insights on resolving the issue at hand, your feedback would be greatly appreciated.