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

Issue with the strokeWidth prop #8

Open
prescientmoon opened this issue Mar 21, 2020 · 1 comment
Open

Issue with the strokeWidth prop #8

prescientmoon opened this issue Mar 21, 2020 · 1 comment

Comments

@prescientmoon
Copy link

So say I have this simple code:

 SE.rect
      [ SA.stroke $ Just $ SA.RGB 118 255 2
      , SA.strokeWidth 5.0
      ]

I get a weird error:

strokeWidth :: ∀ r i. Number → IProp ( strokeWidth ∷ Number | r ) i
  Could not match type

    ( strokeWidth :: Number
    ...
    | t1
    )

  with type

    ( class :: String
    , fill :: String
    , height :: Number
    , id :: String
    , onClick :: MouseEvent
    , onContextMenu :: MouseEvent
    , onDoubleClick :: MouseEvent
    , onKeyDown :: KeyboardEvent
    , onKeyPress :: KeyboardEvent
    , onKeyUp :: KeyboardEvent
    , onMouseDown :: MouseEvent
    , onMouseEnter :: MouseEvent
    , onMouseLeave :: MouseEvent
    , onMouseMove :: MouseEvent
    , onMouseOut :: MouseEvent
    , onMouseOver :: MouseEvent
    , onMouseUp :: MouseEvent
    , onWheel :: WheelEvent
    , rx :: Number
    , ry :: Number
    , stroke :: String
    , transform :: String
    , width :: Number
    , x :: Number
    , y :: Number
    ...
    )


while trying to match type
                             ( strokeWidth :: Number
                             ...
                             | t1
                             )

  with type
              ( class :: String
              , fill :: String
              , height :: Number
              , id :: String
              , onClick :: MouseEvent
              , onContextMenu :: MouseEvent
              , onDoubleClick :: MouseEvent
              , onKeyDown :: KeyboardEvent
              , onKeyPress :: KeyboardEvent
              , onKeyUp :: KeyboardEvent
              , onMouseDown :: MouseEvent
              , onMouseEnter :: MouseEvent
              , onMouseLeave :: MouseEvent
              , onMouseMove :: MouseEvent
              , onMouseOut :: MouseEvent
              , onMouseOver :: MouseEvent
              , onMouseUp :: MouseEvent
              , onWheel :: WheelEvent
              , rx :: Number
              , ry :: Number
              , stroke :: String
              , transform :: String
              , width :: Number
              , x :: Number
              , y :: Number
              ...
              )

while checking that expression strokeWidth 5.0
  has type IProp
             ( class :: String
             , fill :: String
             , height :: Number
             , id :: String
             , onClick :: MouseEvent
             , onContextMenu :: MouseEvent
             , onDoubleClick :: MouseEvent
             , onKeyDown :: KeyboardEvent
             , onKeyPress :: KeyboardEvent
             , onKeyUp :: KeyboardEvent
             , onMouseDown :: MouseEvent
             , onMouseEnter :: MouseEvent
             , onMouseLeave :: MouseEvent
             , onMouseMove :: MouseEvent
             , onMouseOut :: MouseEvent
             , onMouseOver :: MouseEvent
             , onMouseUp :: MouseEvent
             , onWheel :: WheelEvent
             , rx :: Number
             , ry :: Number
             , stroke :: String
             , transform :: String
             , width :: Number
             , x :: Number
             , y :: Number
             )
             t0
in value declaration component

where t0 is an unknown type
      t1 is an unknown type
PureScript(TypesDoNotUnify)
Peek Problem
No quick fixes available

how can I fix this?

@prescientmoon
Copy link
Author

Was revisiting my old open issues and noticed I had a salty sarcastic comment in here, deleted it and wanted to say sorry:)

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