Type error for README example
mishaszu opened this issue · comments
Michal Szulczewski commented
Hello,
I'm new to ReasonReact
and bs-css
and was a bit surprised when got type error trying to run code from examples.
I'm getting error for all usages of rules associated with colors, like color
, backgroundColor
etc. and for padding
.
For example:
let navbar = style([
color(white)
]);
I'm getting:
This has type:
[> Css.Types.Color.t ]
But somewhere wanted:
Css.Types.Color.t (defined as Css_AtomicTypes.Color.t)
If I'd try padding
like that:
padding(px(0))
// or
padding(zero)
I'm getting:
This has type:
[> `zero ]
But somewhere wanted:
Css.Types.Length.t (defined as Css_AtomicTypes.Length.t)
From VS-Code I'm getting extra message:
Css.Types.Color.t is abstract because no corresponding cmi file was found in path.
I'm using bss-css-emotion
and using style like that:
<div className=Style.navbar></div>
Other rules seem to work just fine.
Should I do any extra configuration?
I'm not sure how cmi
file should look like.
Michal Szulczewski commented
Duplicated: #181