victors1681 / 3dbrain

3D Brain for AI - User Interface - Thee.js
39 stars 23 forks source link

[Error] TypeError: this.setAttribute is not a function. (In 'this.setAttribute(name, attribute)', 'this.setAttribute' is undefined) #12

Closed oan-J closed 7 months ago

oan-J commented 7 months ago

Hi, while I was running http://localhost:8080, I faced this problem:

[Error] TypeError: this.setAttribute is not a function. (In 'this.setAttribute(name, attribute)', 'this.setAttribute' is undefined) createAttribute (bas.module.js:1621) bufferPositions (bas.module.js:1605) PointBufferGeometry (bas.module.js:1601) init (particlesSystem.js:72) ParticleSystem (particlesSystem.js:53) addParticlesSystem (MainBrain.js:277) runAnimation (MainBrain.js:218) handlerLoad (Loaders.js:56) (匿名函数) (three.module.js:30976) (匿名函数) (three.module.js:31596)

I tried to "console.log(this)" in the createAttribute function in bas.module.js, and did npm install and npm run dev again, but it couldn't show the log info.

I also faced error: [Error] TypeError: undefined is not an object (evaluating '_this3.particlesSystem.transform') onStart (MainBrain.js:176) (匿名函数) (TweenLite.js:582) (匿名函数) (TweenMaxBase.js:302) (匿名函数) (TweenLite.js:1132) (匿名函数) (TweenLite.js:1152) (匿名函数) (TweenLite.js:287) _tick (TweenLite.js:339)

[Error] TypeError: undefined is not an object (evaluating '_this3.particlesSystem.xRay') onComplete (MainBrain.js:180) (匿名函数) (TweenLite.js:582) (匿名函数) (TweenMaxBase.js:338) (匿名函数) (TweenLite.js:877) (匿名函数) (TweenLite.js:1149) (匿名函数) (TweenLite.js:287) _tick (TweenLite.js:339)

Could you help me with this?