You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is that the registerTables and registerReducers methods rely on the .name attribute of the generated classes in the bindings. I'd recommend to use .tableName (I'm not sure though if that suitable) or add a separate static field .className instead of relying on JavaScript sources that may change during bundling and minification.
Ib my case, I'm configuring the Spacetime SDK in a Next.js project which has code minification enabled, and the class names in the bindings are mangled which causes missing class error:
Uncaught (in promise) Could not find class "World", you need to register it with SpacetimeDBClient.registerTable() first
The text was updated successfully, but these errors were encountered:
The issue is that the
registerTables
andregisterReducers
methods rely on the.name
attribute of the generated classes in the bindings. I'd recommend to use.tableName
(I'm not sure though if that suitable) or add a separate static field.className
instead of relying on JavaScript sources that may change during bundling and minification.Ib my case, I'm configuring the Spacetime SDK in a Next.js project which has code minification enabled, and the class names in the bindings are mangled which causes missing class error:
The text was updated successfully, but these errors were encountered: