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

[Bug] test-utils: Failed to created device 'undefined': Cannot read properties of null (reading 'addEventListener')

Open davidcalhoun opened this issue 1 month ago • 0 comments

Description

This error is triggered when importing testLayer:

import { testLayer } from "@deck.gl/test-utils";

// error: `Failed to created device 'undefined': Cannot read properties of null (reading 'addEventListener')`

Please see the minimal test case I created here: https://github.com/davidcalhoun/deck.gl-test-utils-bug

Flavors

  • [ ] Script tag
  • [X] React
  • [ ] Python/Jupyter notebook
  • [ ] MapboxOverlay
  • [ ] GoogleMapsOverlay
  • [ ] CartoLayer
  • [ ] ArcGIS

Expected Behavior

No response

Steps to Reproduce

Please see a minimal reproduction here: https://github.com/davidcalhoun/deck.gl-test-utils-bug

Environment

Logs

No response

davidcalhoun avatar May 21 '24 18:05 davidcalhoun