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

presetKobalte: Incorrect types being reported for the plugin #21

Open
rafael-lua opened this issue Aug 17, 2024 · 0 comments
Open

presetKobalte: Incorrect types being reported for the plugin #21

rafael-lua opened this issue Aug 17, 2024 · 0 comments

Comments

@rafael-lua
Copy link

rafael-lua commented Aug 17, 2024

I installed the most recent versions of unocss (0.62.2) and unocss-preset-primitives (0.0.2-beta.1), but when applying the plugin, the typescript gets mad:

Capture

My project typescript version is at 5.3.3.


Type 'Preset<object>' is not assignable to type 'PresetOrFactory<any> | PresetOrFactory<any>[]'.
  Type 'Preset<object>' is not assignable to type 'Preset<any>'.
    Types of property 'rules' are incompatible.
      Type 'Rule<object>[]' is not assignable to type 'Rule<any>[]'.
        Type 'Rule<object>' is not assignable to type 'Rule<any>'.
          Type '[RegExp, DynamicMatcher<object>]' is not assignable to type 'Rule<any>'.
            Type '[RegExp, DynamicMatcher<object>]' is not assignable to type '[string, CSSEntries | CSSObject] | [RegExp, DynamicMatcher<any>]'.
              Type '[RegExp, DynamicMatcher<object>]' is not assignable to type '[string, CSSEntries | CSSObject]'.
                Type at position 0 in source is not compatible with type at position 0 in target.
                  Type 'RegExp' is not assignable to type 'string'.ts(2322)
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