In attempting the `elm make` call in part received this error:
-- CORRUPT CACHE ---------------------------------------------------------------
I ran into an unknown package while exploring dependencies:
NoRedInk/json-decode-pipeline
This suggests that your /Users/{UserName}/.elm directory has been corrupted.
Maybe some program is messing with it? It is just cached files, so you can
delete it and see if that fixes the issue.
The names of two of the modules appear to have changed for 0.19. This is
currently updated in the solutions branch but not the exercises branch.
Feel free to delete this if it doesn't fit into your workflow workflow.
It seemed nicest to open this as PR in case anyone else ran into the same
issue and is looking for answers.
Introduction to Elm Workshop
If you haven't already, follow the Getting Started instructions at the root of this repository, then continue here!
Start the server
We'll be running a local server for our Elm UI to use. Let's get it set up.
cd intro/server
npm install
npm start
If the server started up successfully, you should see
> moleculer-runner services at the end of your terminal.
We're going to leave this server running and not touch it again for the duration of the workshop, so don't close it until the workshop is over!
Build the Elm UI
Leave the existing terminal running, and open a second terminal.
In the new termnal, cd into the elm-0.19-workshop/intro/server/ directory again.
Then run this to build the Elm code for the first time:
elm make src/Main.elm --output=../server/public/elm.js
Verify your setup
Open http://localhost:3000 in your browser. You should see this in it:
If things aren’t working, the instructor will be happy to help!
Links
- The solutions to these exercises
- Slides for the Frontend Masters workshop that goes with this repo
- Elm in Action, a book by Richard Feldman, creator of this workshop
- Official Elm Guide by Evan Czaplicki, creator of Elm
- Elm Slack - amazingly helpful chat community. People in the
#beginnerschannel are happy to answer questions! - Elm Discourse - for longer-form discussions.