(Phoenix.Router.NoRouteError) no route found for GET /css/phoenix.css

Hey all,
In the example project from book “Programming Phoenix…”,
When visit http://localhost:4000/users/new, the console shows:
(Phoenix.Router.NoRouteError) no route found for GET /css/phoenix.css (RumblWeb.Router).
When visit http://localhost:4000/, it is ok.

Phoenix version is 1.3.4, brunch version is 2.10.16, webpack version is 3.1.0.

Anyone can give me a glue?


Without some code it would be difficult, but if You are on Unix, You can try to run

find . -type f -exec grep -H phoenix.css {} \;

and tell us in which file You find this.

Check the endpoint.ex file under the rumbl_web directory.

In the plug function you should have css inside the only field. Similar to this:

    at: "/",
    from: :rumbl,
    gzip: false,
    only: ~w(css fonts images img js favicon.ico robots.txt)

In the Myproject/assets/css/app.css file, there is @import "./css/phoenix.css";.
And in the Myproject/lib/myproject_web/templates/layout/app.html.eex file, there is <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">

Yes. it looks like:

  plug Plug.Static,
    at: "/", from: :qbme, gzip: false,
    only: ~w(css fonts images js favicon.ico robots.txt)

I delete the line@import "./css/phoenix.css", and run brunch build, and no console complains.
But I do not understand where phoenix.css loaded.

In Phoenix 1.2.5 it is OK to import phoenix.css in app.css.

So, anyway there is no complains now and thank you all.