0
私はelm-native-uiを使って基本的なネイティブチャットアプリを作っています。elm-native-uiを使った基本チャット
私が開いたり、それがうまく働いて、偽の側にchatOpenブールactiveChannelView =
case chatOpen of
True ->
Maybe.map (\a -> chatView users a messages) activeChannel ? viewEmpty
False ->
Maybe.map (cardView users) activeChannel ? viewEmpty
を変更するボタンをクリックしてチャットを閉じるが、真の側にそれがviewEmptyがあることが必要であると言うことができます
(文字列の代わりに - (ノードメッセージ)であることの>ノードメッセージ)が、左側(chatViewユーザメッセージ)がノードメッセージ
The right side of (?) is causing a type mismatch.
Maybe.map (\a -> chatView users a messages) activeChannel ? viewEmpty
^^^^^^^^^
(?) is expecting the right side to be a:
String -> Node Msg
But the right side is:
Node Msg
下のエラーをチェックを返す私は私と仮定します
chatView : List User -> Request -> List String -> String -> Node Msg
私は昼寝を取る必要があります、ありがとう – Charlon