clockworklabs/SpacetimeDB · error · TypeError
multiple schemas are not supported
Error message
multiple schemas are not supported
What it means
Error "multiple schemas are not supported" thrown in clockworklabs/SpacetimeDB.
Source
Thrown at crates/bindings-typescript/src/server/schema.ts:725
export const exportContext = Symbol('SpacetimeDB.exportContext');
export interface ModuleExport {
[registerExport](ctx: SchemaInner, exportName: string): void;
[exportContext]?: SchemaInner;
}
function isModuleExport(x: unknown): x is ModuleExport {
return (
(typeof x === 'function' || typeof x === 'object') &&
x !== null &&
registerExport in x
);
}
/** Verify that the ModuleContext that `exp` comes from is the same as `schema` */
function checkExportContext(exp: ModuleExport, schema: SchemaInner) {
if (exp[exportContext] != null && exp[exportContext] !== schema) {
throw new TypeError('multiple schemas are not supported');
}
}
/**
* Extracts the inferred schema type from a Schema instance
*/
export type InferSchema<SchemaDef extends Schema<any>> =
SchemaDef extends Schema<infer S> ? S : never;
/**
* Creates a schema from table definitions
* @param handles - Array of table handles created by table() function
* @returns ColumnBuilder representing the complete database schema
* @example
* ```ts
* const spacetimedb = schema({
* user: table({}, userType),
* post: table({}, postType)View on GitHub (pinned to 524b4487d9)
When it happens
Trigger: Thrown at crates/bindings-typescript/src/server/schema.ts:725 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of clockworklabs/SpacetimeDB@524b4487d9 (2026-08-16).
Data as JSON: /api/errors/608354caffe42ca9.
Report an issue: GitHub.