deck.gl icon indicating copy to clipboard operation
deck.gl copied to clipboard

[Bug] Basic scripting example not working in chrome

Open bendavidsteel opened this issue 4 months ago • 10 comments

Description

If I run the scripting example here locally, and try to open it in chrome, the example does not appear, and I get the following errors:

dist.min.js:2795 deck: Cannot read properties of null (reading 'luma') undefined onError @ dist.min.js:2795 start @ dist.min.js:2736 await in start Mh @ dist.min.js:2795 Fd @ dist.min.js:5460 (anonymous) @ reproduce_luma.html:24Understand this error dist.min.js:2794 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'luma')

The same example works perfectly on firefox.

Flavors

  • [x] Script tag
  • [ ] React
  • [ ] Python/Jupyter notebook
  • [ ] MapboxOverlay
  • [ ] GoogleMapsOverlay
  • [ ] CARTO
  • [ ] ArcGIS

Expected Behavior

The example should run in chrome

Steps to Reproduce

Save: https://github.com/visgl/deck.gl/blob/9.1-release/examples/get-started/scripting/basic/index.html locally, edit the version number to latest, use http-server to run a local server, and open in the google chrome browser.

This codepen runs successfully for me in google chrome, so something about the scripting api?

Environment

  • Framework version: 9.1.14
  • Browser: 138.0.7204.49
  • OS: Ubuntu 22.04.5

Logs

dist.min.js:2795 deck: Cannot read properties of null (reading 'luma') undefined onError @ dist.min.js:2795 start @ dist.min.js:2736 await in start Mh @ dist.min.js:2795 Fd @ dist.min.js:5460 (anonymous) @ reproduce_luma.html:24Understand this error dist.min.js:2794 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'luma')

bendavidsteel avatar Aug 01 '25 20:08 bendavidsteel