Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not load in A-Frame 1.6.0: getComputedAttribute is not a function #341

Closed
herebefrogs opened this issue Aug 15, 2024 · 4 comments
Closed

Comments

@herebefrogs
Copy link

Throw the following error in the JS console:

TypeError: e.getComputedAttribute is not a function
    at i (aframe-layout-component@3.0.1:1:1702)
    at aframe-layout-component@3.0.1:1:1793
    at Array.forEach (<anonymous>)
    at n.init (aframe-layout-component@3.0.1:1:1661)
    at n.initComponent (component.js:253:10)
    at n.updateProperties (component.js:239:12)
    at e.exports.Component (component.js:107:8)
    at new n (component.js:674:15)
    at u.initComponent (a-entity.js:302:17)
    at u.updateComponent (a-entity.js:458:10)

Example: https://glitch.com/edit/#!/glory-pear-asp?path=index.html%3A1%3A0

@herebefrogs herebefrogs changed the title Does not load in A-Frame 1.6.0 Does not load in A-Frame 1.6.0: getComputedAttribute is not a function Aug 15, 2024
@vincentfretin
Copy link
Contributor

Please test latest versions. The error is coming from aframe-layout-component@3.0.1
We are currently on version 5.3.0 https://www.npmjs.com/package/aframe-layout-component

@herebefrogs
Copy link
Author

My bad, the newer version works. I got this example from A-Frame School whose examples are all outdated.

@vincentfretin
Copy link
Contributor

PR welcome to update any outdated examples.

@vincentfretin
Copy link
Contributor

I did aframevr/aframe#5567 to update some urls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants