Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
535 views
in Technique[技术] by (71.8m points)

javascript - Uncaught (in promise) TypeError: e.Geometry is not a constructor

I'm using the freely available code tensorspace.min.js which can be found over here: https://github.com/tensorspace-team/tensorspace/blob/master/dist/tensorspace.min.js

The error message I'm getting is: Uncaught (in promise) TypeError: e.Geometry is not a constructor

How can I fix this kind of error?

Here is a short code snippet regarding the error message:

createGroupGeometry:function(A,t){let i=new e.Geometry({transparent:!0,opacity:this.minOpacity});return i.colors=t,i.vertices=A,i.colorsNeedUpdate=!0,i.verticesNeedUpdate=!0,i}},yt.prototype=Object.assign(Object.create(hA.prototype),{addLineGroup:function(){this.lineGroupHandler=new St(this,this.context,this.neuralGroup,this.color,this.minOpacity)},init:function(A,t){},assemble:function(A,t){},updateValue:function(A){},clear:function(){},handleClick:function(A){},handleHoverIn:function(A){},handleHoverOut:function(){},loadModelConfig:function(A){},calcCloseButtonSize:function(){return 1},calcCloseButtonPos:function(){return{x:0,y:0,z:0}},getRelativeElements:function(A){return{straight:[],curve:[]}},
question from:https://stackoverflow.com/questions/65923803/uncaught-in-promise-typeerror-e-geometry-is-not-a-constructor

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...