Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't instantiate packages #76

Open
farisd16 opened this issue May 16, 2024 · 1 comment
Open

Can't instantiate packages #76

farisd16 opened this issue May 16, 2024 · 1 comment

Comments

@farisd16
Copy link

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
Copy link

MintPaw commented Jun 3, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants