Skip to content

module_bindings does not import correctly from @clockworklabs-spacetimedb-sdk #167

Open
@Zundrium

Description

@Zundrium

I'm making a simple Typescript 5.8.0 project, where I run the command to generate the module_bindings folder:

spacetime generate --lang typescript --out-dir client/src/module_bindings --project-path server

This creates .ts files with imports from the @clockworklabs-spacetimedb-sdk.

CallReducerFlags for example is being imported as a variable, not as a type. So importing the current module_bindings results in this error:

Uncaught SyntaxError: The requested module 'http://localhost:5173/node_modules/.vite/deps/@clockworklabs_spacetimedb-sdk.js?v=8b3b85f2' doesn't provide an export named: 'CallReducerFlags'

Am I doing something wrong or is there a version mismatch between the sdk and the module_bindings?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions