Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forget CSS and enjoy creating UIs in pure Elm #145

Open
nelsonic opened this issue Nov 13, 2019 · 7 comments
Open

Forget CSS and enjoy creating UIs in pure Elm #145

nelsonic opened this issue Nov 13, 2019 · 7 comments
Assignees

Comments

@nelsonic
Copy link
Member

nelsonic commented Nov 13, 2019

https://korban.net/posts/elm/2019-11-17-elm-ui-introduction/ a superb intro to Elm UI by @alexkorban
https://ellie-app.com/3TdcKSPxMv5a1

@nelsonic
Copy link
Member Author

@nelsonic
Copy link
Member Author

Seriously thinking of buying this book: https://korban.net/elm/book/
image

@SimonLab Qu'est-ce que tu penses ?

@SimonLab
Copy link
Member

image

The most interesting aspect are the ones linked UI and css but it's also always good to refresh and read other explanation for topic we are already comfortable with.
Also money back guarantee if not happy.

@alexkorban

This comment has been minimized.

@nelsonic

This comment has been minimized.

@nelsonic
Copy link
Member Author

nelsonic commented Dec 7, 2019

The book source code is Elm version 0.19.0. I have Elm 0.19.1 installed and get the following error:
image

Attempted to update the version of elm in elm.json to 0.19.1 ...
elm make src/Main.elm appears to work:

Starting downloads...

  ● elm/regex 1.0.0
  ● mdgriffith/elm-ui 1.1.0
  ● rtfeldman/elm-validate 4.0.1
  ● elm/random 1.0.0
  ● elm/json 1.1.2
  ● elm/bytes 1.0.3
  ● elm-explorations/test 1.2.0
  ● elm/file 1.0.1

Dependencies ready!
Success! Compiled 12 modules.

    Main ───> index.html

But attempting to open the resulting index.html file gives the following error:

image

Initialization Error
Error: Problem with the flags given to your Elm program on initialization.

Problem with the given value:

undefined

Expecting an OBJECT with a field named `sessionId`

@nelsonic
Copy link
Member Author

nelsonic commented Dec 7, 2019

Downgraded to Elm 0.19.0:

npm install -g elm@elm0.19.0

Re-compiled:

elm make src/Main.elm
Starting downloads...

  ● mdgriffith/elm-ui 1.1.0
  ● elm/regex 1.0.0
  ● elm-explorations/test 1.2.0
  ● rtfeldman/elm-validate 4.0.1

Dependencies ready!
Success! Compiled 12 modules.

Attempt to open the resulting index.html file:
image

Fail. 😞

nelsonic added a commit that referenced this issue Dec 11, 2019
nelsonic added a commit that referenced this issue Dec 12, 2019
nelsonic added a commit that referenced this issue Dec 13, 2019
iteles added a commit that referenced this issue Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants