1

のスタイルを設定しようとするとすぐに、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.styleElm サイトで の例を見つけることができません。何か間違ったことをしているのですか、それともバグですか?

4

1 に答える 1