-
Notifications
You must be signed in to change notification settings - Fork 18
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
Tutorial seat_saver part-2 : Using phoenix 1.1.3, [email protected] and the last elm packages #4
Comments
Does the app work when you open it in the browser? I've occasionally seen that error as a race condition between the Elm build finishing and the Brunch process completing. As soon as the Elm build finishes though Brunch recognises the changes and runs again, this time successfully. |
Yes, it works. I have got the message below when I refresh the index page: But the index source show an empty elm-main div. |
Sorry actually the brunch build didn't succeed. |
OK, thanks. I'll try running the code with the version you mentioned and see if I get the same issue. |
thank you ~ |
It seems to be working for me. Can you share you code please and I'll see if I can spot anything. Thanks :) |
It is working! The matter is BRUNCH WATCHED :
|
I have the same issue on the latest phoenix while following the tutorial. Adding and removing The file will compile, but the reload fails, then you remove the watcher and the reload works, loading the previously compiled file. |
Ah yes, sorry I just realised that I still had the old version of phoenix_new in my mix archive >.< Upgraded to 1.1.3 and am seeing the same behaviour. I'll take a look at it this evening and try to get to the root of the issue. Thanks, folks. |
OK so a quick update: I've confirmed that it's brunch 2.2.0 where the issue arises. If you downgrade to brunch 2.1.3 everything should work as expected. Will carry on trying to locate the source of the issue. |
It looks like the issue is with the elm-brunch plugin that I'm using. Brunch seems to have updated the way that they expect plugins to be written. I raised an issue there and posited a potential fix. Will let you know how I get on. Thanks again for raising. :) |
Thanks, 2.1.3 resolved the issue for me. |
Hi all, Apologies for the late reply, been very busy of late. There is now an updated version of elm-brunch (0.4.4) that fixes this issue. I've updated the code in the SeatSaver project to reflect the move to Phoenix 1.1.3 and elm-brunch 0.4.4 and will add a post to the blog. |
Hi,
I got this message error in the terminal after starting the server: iex -S mix phoenix.server
error: undefined of web/elm/SeatSaver.elm failed. or: Cannot read property 'path' of undefined
The brunch process succeeded, I can see the Elm script inside the app.js in the priv directory.
But the true is, I should I have done something wrong :(
Any help?
The text was updated successfully, but these errors were encountered: