Skip to content

Size doesn't exist on SpinnerCircularFixed #24

Closed

Description

@mattfelten

<SpinnerCircularFixed size={32} /> has a type error that size doesn't exist. It does seem to work though.

Activity

  1. Amit-K-007 commented on Aug 12, 2024

    @Amit-K-007

    @mattfelten <SpinnerCircularFixed size={32} /> is working correctly. There is no any type error.

  2. mattfelten commented on Aug 12, 2024

    @mattfelten
    Author

    [email protected]

    CleanShot 2024-08-12 at 11 17 11

    Type '{ size: number; thickness: number; speed: number; color: string; secondaryColor: "rgba(0, 0, 0, 0.44)"; className: string; "client:load": true; }' is not assignable to type 'IntrinsicAttributes & HTMLAttributes & Partial<{ speed: number; still: boolean; thickness: number; }> & Partial<...>'.
    Property 'size' does not exist on type 'IntrinsicAttributes & HTMLAttributes & Partial<{ speed: number; still: boolean; thickness: number; }> & Partial<...>'.ts(2322)

    I'll try to create a working demo.

  3. Amit-K-007 commented on Aug 12, 2024

    @Amit-K-007

    image
    I tried using the same component as you, and it worked properly for me.
    It might help to try reinstalling the library, as this could resolve the error.

  4. mattfelten commented on Aug 12, 2024

    @mattfelten
    Author

    Really odd. You're right. I can't replicate it on CodeSandbox. https://codesandbox.io/p/sandbox/test-react-spinners-zf2nph

    I did reinstall all my dependencies but didn't change anything. I'll keep digging but seems like the library is fine. Must be on my end somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions