Skip to content

Cannot use 'in' operator to search for 'Symbol(javelin_field_kind)' in undefined #179

Description

@max-vogler

First, thanks for your work on javelin - I'm learning about ECS and found your TypeScript implementation very elegant!

I'm trying to adapt your client-server example from https://github.com/3mcd/javelin/tree/next/examples/spin to synchronize an entity with a simple component over a WebSocket. Using the latest version (1.0.0-alpha.15) of net there is an unclear error message on the client side:

    model_helpers.ts:196 Uncaught TypeError: Cannot use 'in' operator to search for 'Symbol(javelin_field_kind)' in undefined
    at isSchema (model_helpers.ts:196:12)
    at getTarget (pack.ts:163:7)
    at decodeInner (pack.ts:186:12)
    at decode (pack.ts:279:10)
    at decodeSnapshotPart (message_handler.ts:87:14)
    at decode2 (message_handler.ts:189:11)
    at Object.system (message_handler.ts:208:7)
    at Object.executor (world.ts:42:15)   # handler.system();
    at effect (effect.ts:201:25)  # useNet = createEffect(
    at world.ts:52:23

Any advice? Please let me know if you need more context to replicate or understand the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions