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

Type errors in demo code #440

Open
jazweatherhead opened this issue Oct 18, 2021 · 0 comments
Open

Type errors in demo code #440

jazweatherhead opened this issue Oct 18, 2021 · 0 comments

Comments

@jazweatherhead
Copy link

I'm getting weird type errors trying to run the demo code, third example. The issue seems similar to #141.

Error:

  Type '{ width: number; height: number; mark: string; encoding: { x: { field: string; type: string; }; y: { field: string; type: string; }; }; data: { name: string; }; }' is not assignable to type 'TopLevelUnitSpec<Field>'.
    Type '{ width: number; height: number; mark: string; encoding: { x: { field: string; type: string; }; y: { field: string; type: string; }; }; data: { name: string; }; }' is not assignable to type 'GenericUnitSpec<FacetedCompositeEncoding<Field>, AnyMark>'.
      Types of property 'mark' are incompatible.
        Type 'string' is not assignable to type 'AnyMark'.

I'm using:

    "react": "^17.0.2",
    "react-vega": "^7.4.4",
    "vega": "^5.21.0",
    "vega-lite": "^5.1.1",

Thanks.

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

1 participant