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

luma.gl examples have JS error #26274

Open
jdm opened this issue Apr 22, 2020 · 2 comments
Open

luma.gl examples have JS error #26274

jdm opened this issue Apr 22, 2020 · 2 comments
Labels
A-content/dom Interacting with the DOM from web content

Comments

@jdm
Copy link
Member

jdm commented Apr 22, 2020

joshmatthews@joshmatthews-fcmd6r servo % ./mach run -r https://luma.gl/examples/showcase/instancing/ --pref dom.webgl2.enabled
gatsby-theme-ocular loaded
gatsby-theme-ocular: Loading ocular website generator (gatsby version)
TypeError: e is undefined
TypeError: e is undefined
[2020-04-22T15:50:08Z ERROR script::dom::bindings::error] Error at https://luma.gl/commons-d385374ae0595a77b9b8.js:1:329232 e is undefined
function Un(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=Dn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}
@jdm jdm added the A-content/dom Interacting with the DOM from web content label Apr 22, 2020
@jdm
Copy link
Member Author

jdm commented Apr 22, 2020

This occurs because SVGElement doesn't have a style property. If I run with --pref dom.svg.enabled --userscripts=resources/user-agent-js and add a script with SVGElement.prototype.style = {} then the demo displays.

@jdm
Copy link
Member Author

jdm commented May 26, 2020

This also affects flow.gl content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-content/dom Interacting with the DOM from web content
Projects
None yet
Development

No branches or pull requests

1 participant