Created
June 14, 2016 17:13
-
-
Save shlonny/4f24edaf975c5c1e0fe3716ba5ff054b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[signup] elm-make SignupForm.elm | |
Some new packages are needed. Here is the upgrade plan. | |
Install: | |
elm-lang/core 4.0.1 | |
Do you approve of this plan? (y/n) y | |
Downloading elm-lang/core | |
Packages configured successfully! | |
I cannot find module 'Html.App'. | |
Module 'SignupForm' is trying to import it. | |
Potential problems could be: | |
* Misspelled the module name | |
* Need to add a source directory or new dependency to elm-package.json | |
[signup] elm-package install elm-lang/html | |
To install elm-lang/html I would like to add the following | |
dependency to elm-package.json: | |
"elm-lang/html": "1.0.0 <= v < 2.0.0" | |
May I add that to elm-package.json for you? (y/n) y | |
Some new packages are needed. Here is the upgrade plan. | |
Install: | |
elm-lang/html 1.0.0 | |
elm-lang/virtual-dom 1.0.2 | |
Do you approve of this plan? (y/n) y | |
Downloading elm-lang/html | |
Downloading elm-lang/virtual-dom | |
Packages configured successfully! | |
[signup] elm-make SignupForm.elm | |
-- NAMING ERROR ------------------------------------------------- SignupForm.elm | |
Cannot find variable `initialModel` | |
71| { init = ( initialModel, Cmd.none ) | |
^^^^^^^^^^^^ | |
-- NAMING ERROR ------------------------------------------------- SignupForm.elm | |
Cannot find variable `update` | |
73| , update = update | |
^^^^^^ | |
Maybe you want one of the following? | |
Html.Attributes.pubdate | |
Detected errors in 1 module. |
Add:
initialModel =
{ username = "", password = "", errors = initialErrors }
update msg model =
( model, Cmd.none )
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The first error can be fixed by replacing "initialModel" with "initialErrors":
I tired fixing the second error by writing a simple update function :
However, this causes another error, this time in the view:
That's where I got stuck. Maybe view and update need some params that get passed to them in the main function?