のスタイルを設定しようとするとすぐに、Text
次のエラーが発生します。
Cannot read property 'arity' of undefined
Open the developer console for more details.
開発者コンソールが提供しTypeError: fun is undefined
ます。
Elm 0.12、およびhttp://elm-lang.org/try
ブラウザ: Chrome、Firefox
titleStyle : Text.Style
titleStyle =
{ typeface = [ "serif" ]
, height = Just 18
, color = white
, bold = True
, italic = False
, line = Nothing
}
main = centered (style titleStyle (toText "hello"))
次のように変更した場合main
:
main = centered (toText "hello")
テキストはスタイルなしで期待どおりにレンダリングされます。
Text.style
Elm サイトで の例を見つけることができません。何か間違ったことをしているのですか、それともバグですか?