-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
rails assets:precompile
does not create /public/packs
directory
#1759
Comments
Similarly, if I
Locally the packs compile just fine... |
I was able to nail the issue down to some npm packages not being installed (probably a messed up yarn.lock file or something similar). Reinstalling all yarn packs locally and committing the lock file to the repo fixed the server-side building. Just in case somebody else has a similar issue. |
For me it was some people who wrongly put some libs in dev dependencies... So, assets were compiling fine in development, but not on staging. What is strange is that I got no errors (everything was like @buhrmi said). Webpacker should complain about missing libraries when it tries to compile and fails to do so, shouldn't it? |
@Kulgar Errors were suppressed to reduce dev server output in development. I feel like this will be a continual source of problems for new users. Here is the commit.
|
I'm using it with docker and i had to manually run |
@mroliveira7 Thanks for the note on Docker, that got it for me as well. |
I have deployed the Rails App on AWS EC2 instance using Rails and Unicorn. |
@nikolacojcic99 Sounds like something might be failing. Make sure your webpacker.yml ensures compilation logs are printed: Inspect the logs at your next deploy to look for errors during the compilation process. From there, folks may be able to help diagnose the specific error. |
Could you fix this? I'm having the same error :( |
Bumping I've got the same issue while deploying to AWS EB |
I've been trying to figure this issue for a long time, and still didn't get a solution yet. I'm working on Heroku, I get this error in these two different scenarios: In both of these I had to upgrade I login to heroku bash, and tried to compile manually, and here is the result.
Ideally, after running this command, we should see a So it doesn't throw any error, but it also doesn't compile. I also tried |
when i run this command so got a error webpack not found any suggestion plz why this error is coming |
Also having the same problem on webpacker 5 ran rake assets preconoile on heroku and got a notice that Webpack-cli wasn’t there so trying to move it to dependency instead if dev dependency. |
Hello,
I have a pretty straight-forward rails app that I am deploying using dokku. In development it works fine, but in production I get the error
Here is my
webpacker.yml
In the deployment logs I can see
But when I
ls /app/public
, I only getDoes anybody know what might be amiss?
The text was updated successfully, but these errors were encountered: