You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- TYPE MISMATCH ------------------------------------ ./src/App/View/Tooltip.elm
The 1st argument to `translateX` is not what I expect:
115| [ transform (translateX (calc (px 0) minus offset))
^^^^^^^^^^^^^^^^^^^^^^^^
This `calc` call produces:
CalculatedLength
But `translateX` needs the 1st argument to be:
{ compatible
| length : Css.Structure.Compatible
, numericValue : Float
, unitLabel : String
, units : units
, value : String
}
Hint: Seems like a record field typo. Maybe numericValue should be value?
Hint: Can more type annotations be added? Type annotations always help me give
more specific messages, and I think they could help a lot in this case!
The text was updated successfully, but these errors were encountered:
Workaround: in regular old css, rather than calc'ing the translation, you can actually use a series of translates, as long as they're in the same property. So we can do:
I can't seem to use a calc expression for a transformation. I'm trying to write:
But (what I think is) the
elm-css
equivalent does not compile:I get this error:
The text was updated successfully, but these errors were encountered: