The grid (background worker) ยท console.warn
compute kernels could not be loaded; sorting and filtering are unavailable
Printed by The grid (background worker), prefixed [lattice], since 1.0.1.
Warnings reference › worker/no-compute
- Identifier
worker/no-compute- Raised by
- The grid (background worker)
- Since
- 1.0.1
What happened
The host tried to import the compute kernels on the main thread and the dynamic import rejected. This is the main-thread half of the pair - it is what the fallback path itself failed at - so there is nothing left to fall back to and the promise resolves to null for every caller. It is almost always a packaging problem: the compute entry was tree-shaken away, or the bundle was split in a way that leaves the chunk unreachable at runtime.
The fix
Check that @toclocoinc/lattice-grid is installed intact and that your bundler is not code-splitting the compute chunk out of reach; the rejection is attached to the console line. Importing the grid from the published bundle rather than a hand-assembled subset is the reliable route.
Reference
Covered in full at the API reference.