deck.gl
deck.gl copied to clipboard
[Bug] test-utils: Failed to created device 'undefined': Cannot read properties of null (reading 'addEventListener')
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
- Framework version: [email protected]
- Browser: N/A
- OS: macOS 14.3.1
Logs
No response