Closed larfadin closed 8 years ago
Hi @larfadin
Yesterday I upgraded the tutorial from Hop 2.1 to Hop 3.0
This is probably the issue, I'm sorry about this.
Does your Routing
module have this:
type Route
= PlayersRoute
| PlayerEditRoute PlayerId
| NotFoundRoute
If not could you please go back to the beginning of that chapter? From http://www.elm-tutorial.org/070_routing/router.html
Thanks a lot, I did it again and it works. I actually got no luck because I was doing the tutorial when you were updating it. I also find 1-2 error. First one: in http://www.elm-tutorial.org/070_routing/main.html you write:
port routeRunTask : Task.Task () ()
port routeRunTask =
router.run
instead of
port routeRunTask : Task.Task () ()
port routeRunTask =
Routing.run
The second one (I'm not sure it's an error it just look strange to me):
in Routing.elm there is two match 1
indexMatcher : PathMatcher Route
indexMatcher =
match1 PlayersRoute "/"
playersMatcher : PathMatcher Route
playersMatcher =
match1 PlayersRoute "/players"
playerEditMatch : PathMatcher Route
playerEditMatch =
match3 PlayerEditRoute "/players/" int "/edit"
Thanks, fixed the issue with Routing.run
The second one is not an error
Hi, I'm doing the tutorial and I'm here: http://www.elm-tutorial.org/070_routing/main_view.html I have copy and past everything so it's not an error from me.
I have this error:
My router just look like this: http://www.elm-tutorial.org/070_routing/router.html