Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shlonny/4f24edaf975c5c1e0fe3716ba5ff054b to your computer and use it in GitHub Desktop.
Save shlonny/4f24edaf975c5c1e0fe3716ba5ff054b to your computer and use it in GitHub Desktop.
[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.
@kamilchm
Copy link

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