avajs/ava · error · Error
Globs are over 100 KiB and cannot be resolved
Error message
Globs are over 100 KiB and cannot be resolved
What it means
Thrown by resolveGlobsSync when the worker reports that the serialized glob data equals MAX_DATA_LENGTH_EXCLUSIVE: the resolved include/exclude globs exceed the fixed 100 KiB SharedArrayBuffer capacity used for worker-to-main-thread transfer, so the payload cannot be delivered.
Source
Thrown at entrypoints/eslint-plugin-helper.js:49
workerData: {
dataBuffer,
syncBuffer,
firstMessage: {projectDir, overrideExtensions, overrideFiles},
},
});
worker.unref();
} else {
worker.postMessage({projectDir, overrideExtensions, overrideFiles});
}
const synchronize = Atomics.wait(sync, 0, 0, 10_000);
if (synchronize === 'timed-out') {
throw new Error('Timed out resolving AVA configuration');
}
const byteLength = Atomics.exchange(sync, 0, 0);
if (byteLength === MAX_DATA_LENGTH_EXCLUSIVE) {
throw new Error('Globs are over 100 KiB and cannot be resolved');
}
const globsOrError = v8.deserialize(data.slice(0, byteLength));
if (globsOrError instanceof Error) {
throw globsOrError;
}
return globsOrError;
};
const helperCache = new Map();
export function load(projectDir, overrides) {
const cacheKey = `${JSON.stringify(overrides)}\n${projectDir}`;
if (helperCache.has(cacheKey)) {
return helperCache.get(cacheKey);
}
View on GitHub (pinned to bbfd946322)
Solutions
- Reduce the number or size of glob patterns in the AVA 'files' configuration
- Broaden patterns (fewer, wider globs) so the serialized result is smaller
- Move very large file lists out of the config and rely on directory-based globs
- If genuinely needed, patch/raise MAX_DATA_LENGTH_EXCLUSIVE and the SharedArrayBuffer size in a fork
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at entrypoints/eslint-plugin-helper.js:49 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of avajs/ava@bbfd946322 (2026-09-02).
Data as JSON: /api/errors/04f4e03abfdebaa8.
Report an issue: GitHub.