question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'array' of undefined TextGeometry computeBoundingSphere error

See original GitHub issue

Description: I’m getting an error with the cd01cec version. On this url you can see the error when you focus the pointer on the green marks

index.js:96 Uncaught TypeError: Cannot read property 'array' of undefined at TextGeometry.computeBoundingSphere (index.js:96) at H.raycast (three.js:11367) at Fa (three.js:46525) at Ba.intersectObjects (three.js:46600) at i.checkIntersections (raycaster.js:226) at i.tick (raycaster.js:198) at HTMLElement.tick (a-scene.js:719) at HTMLElement.render (a-scene.js:769) at bind.js:12 at m (three.js:25084)

With version 1.0.4 this works fine, but VR is not working on iOS 13.4.1…

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

5reactions
vincentfretincommented, Jun 11, 2020

@jgutierro I see you have the following warning on your page [raycaster] For performance, please define raycaster.objects when using raycaster or cursor components to whitelist which entities to intersect with. e.g., raycaster="objects: [data-raycastable]" By fixing this warning, this should fix the issue. I see you use <a-cursor, it may create a raycaster component without config, try to add raycaster="objects: .link" on it too.

0reactions
jgutierrocommented, Jun 11, 2020

Hello @vincentfretin adding raycaster="objects: .link" to my <a-cursor solved the issue! thank you so so much for your amazing and dedicated support and help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'array' of undefined error occurring in my ...
Solved. For anyone like me facing this issue. Check your red box and you can see the module where the error is targeting....
Read more >
Team:Munich/Hardware/threeJS - iGEM 2018
throw new TypeError( 'Cannot convert undefined or null to object' );. } var output = Object( target );. for ( var index =...
Read more >
Boundingsphere Is Null - Textgeometry, Threejs - ADocLib
This class will take an array of vertices project them onto a sphere and then divide ... throw new TypeError 'Cannot convert undefined...
Read more >
BufferGeometry – three.js docs
To read and edit data in BufferGeometry attributes, see BufferAttribute documentation. ... This allows an array of materials to be used with the...
Read more >
JavaScript 3D library
BufferAttribute ( array, itemSize, normalized ); function three. ... false // set to use shader texture LOD }; // When rendered geometry doesn't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found