The grid (background worker) ยท console.warn
compute worker failed; falling back to the main thread
Printed by The grid (background worker), prefixed [lattice], since 1.0.1.
Warnings reference › worker/error
- Identifier
worker/error- Raised by
- The grid (background worker)
- Since
- 1.0.1
What happened
The Worker itself raised an error event - an uncaught throw inside the worker, or a script that would not load. That kills the whole boundary rather than one request: every in-flight request is settled on the main thread, the ready promise resolves false, and nothing crosses again for the life of this grid, columnisation included.
The fix
The browser's message is attached as the second console argument and the worker's own stack is in the console above it. A worker script served with the wrong MIME type, or a workerType of 'classic' pointed at an ES module, produces this.
Reference
Covered in full at the API reference.