The grid (core) ยท console.warn
download requested but this environment has no DOM; returning the data instead
Printed by The grid (core), prefixed [lattice], since 1.6.0.
Warnings reference › export/no-download
- Identifier
export/no-download- Raised by
- The grid (core)
- Since
- 1.6.0
What happened
Starting a download means creating an anchor and clicking it, and there is no document to do that in - a worker, a server-side render, a test runner. The file was still produced: the blob is returned to the caller instead of being saved.
The fix
Take the returned data and write it yourself. In a browser, check that the export is not running inside a worker.
Reference
Covered in full at the API reference.