Birch-san / box2d-wasm

Box2D physics engine compiled to WebAssembly. Supports TypeScript and ES modules.
263 stars 21 forks source link

Can't instantiate packages #76

Open farisd16 opened 1 month ago

farisd16 commented 1 month ago

I am trying to follow instructions from README.dev.md, but after running pnpm --filter=webidl-to-ts build, I get the error:

src/codegen.ts:994:13 - error TS2345: Argument of type 'NodeArray<ModifierLike>' is not assignable to parameter of type 'readonly Modifier[]'.
  The types returned by 'concat(...)' are incompatible between these types.
    Type 'ModifierLike[]' is not assignable to type 'Modifier[]'.
      Type 'ModifierLike' is not assignable to type 'Modifier'.
        Type 'Decorator' is not assignable to type 'Modifier'.
          Type 'Decorator' is not assignable to type 'StaticKeyword'.
            Types of property 'kind' are incompatible.
              Type 'SyntaxKind.Decorator' is not assignable to type 'SyntaxKind.StaticKeyword'.

994             node.modifiers,
MintPaw commented 1 month ago

Same, as a C++ emscripten user this error is totally unintelligible to me. It seems like has to do with the webidl library? Like we need a specific version of it?