Webpacker: 3.0.2 release for High Sierra Launch 9/25?

Created on 22 Sep 2017  路  11Comments  路  Source: rails/webpacker

With High Sierra set to release on Monday, should a 3.0.2 release be cut with the High Sierra fix?

Most helpful comment

@aselder Please use master branch that has High Sierra fix for time being. We are thinking to make another release sometime next week but can't say it will be on Monday :)

All 11 comments

@aselder Please use master branch that has High Sierra fix for time being. We are thinking to make another release sometime next week but can't say it will be on Monday :)

Working master branch works!
gem 'webpacker', github: 'rails/webpacker'

This doesn't seem to work well when deploying to Heroku. It would give me errors like this:

Sprockets::FileNotFound: couldn't find file 'jquery-deparam/jquery-deparam.js' with type 'application/javascript'

@gauravtiwari Please reconsider being sparse with your release regarding this issue, at the moment we our programmers gitignoring their own gemfiles in an effort to keep our prod code clean

@Superpencil Forgive me, the plan was basically that. Please expect a release this week once Javan is back.

In High Sierra I just start my app with rails s I get:

ActionController::RoutingError (No route matches [GET] "/packs/filename-90e3a229dfb65ab02cae.js"):

However if I first do: bin/webpack-dev-server and then in a second window do rails s all seems to be working great.

@kstratis Make sure compile is set to true, if you don't want to use dev server and use on-demand compilation instead. It's under config/webpacker.yml

@gauravtiwari compile is already set to true in both development and test environments. However I still get this no matter which route I hit:

Started GET "/packs/datatables-bundle-90e3a229dfb65ab02cae.js" for 127.0.0.1 at 2017-10-03 13:32:03 +0300

ActionController::RoutingError (No route matches [GET] "/packs/datatables-bundle-90e3a229dfb65ab02cae.js"):

actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call'
...

I also forgot to mention that I am using the latest react_on_rails 9.0.3 (and of course Rails 5.1.4).

@kstratis Right, have you tried just with Webpacker. It could be that the react_on_rails isn't using on-demand compilation from webpacker.

Works like this basically:
screen shot 2017-10-03 at 11 36 52

@gauravtiwari Thanks for pointing me in the right direction. It turned out that indeed Webpacker was not doing the on-demand compilation.

The solution was to just delete the temp folder in my Rails app and then restart the server as pointed out here.

For the record this happened only after upgrading to High Sierra.

@kstratis No worries. Ahh I see, that's another way but usually you don't have to do that if you are just using on-demand compilation.

It's possible that the timestamp of the files haven't changed since you upgraded to Sierra and may be you have run dev server at some point, which could have changed the manifest.json and hence the error - pack not found.

If you run webpack-dev-server after on-demand compilation and switch back to on-demand then it won't re-compile unless a file is changed so, in that case you would need to delete the cache to force recompile otherwise you will get 404 not found since the manifest has changed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eriknygren picture eriknygren  路  3Comments

suhomozgy-andrey picture suhomozgy-andrey  路  3Comments

pioz picture pioz  路  3Comments

ilrock picture ilrock  路  3Comments

amandapouget picture amandapouget  路  3Comments