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
ActionController::RoutingError (No route matches [GET] "/packs/js/application-56a22cf11b022415f36b.js") #2688
Comments
I'm seeing the same issue |
Please check in your |
@guillaumebriday the issue occurs with my production build, should i set it to true there too? |
If you want the compilation on demand yes. The production build is not compile on demand. You need to precompile it with:
|
I see, I don't want to compile on demand, but the assets used to get compiled when I did: |
Can you put your logs here when you run the command? |
It looks like a one off issue, in a past dependabot update the build failed with:
but in a new dependabot PR the build went fine 🤷 |
Hum ok. Feel free to close the issue then 👍 |
I upgraded the gem to 5.2.1 and ran bundle exec rails webpacker:install, but I can't run rails without running bin/webpack-dev-server, it doesn't find the js files. |
Running My situation: Rails was compiling on development great. I watched a video that said you could also run |
For me the issue was when the node version had upgraded. The application version and the system version was different. When I upgraded my system one to match the application it started working. As it does not show any visible node version mismatch errors, I am pointing that here. Hoping this might help someone. Thanks |
This worked for me, as well. Thanks to @jaredlt! |
This Work for me Thanks |
if nothing else worked for you, make sure you have this in your
|
According to the readme, in development, webpacker should compile assets on demand, but if I don't run
bin/webpack-dev-server
I have the error messageActionController::RoutingError (No route matches [GET] "/packs/js/application-56a22cf11b022415f36b.js")
.But there is no issue if I run
bin/webpack-dev-server
:What did I miss? Thanks.
The text was updated successfully, but these errors were encountered: