Skip to content
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

asset_compile fails in production #2326

Closed
joelcahalan opened this issue Oct 17, 2019 · 4 comments
Closed

asset_compile fails in production #2326

joelcahalan opened this issue Oct 17, 2019 · 4 comments

Comments

@joelcahalan
Copy link

I am deploying a rails 6(recently upgraded and using assets pipline alongside webpacker) app to AWS elasticbeanstalk. Deploy's were working until I added tailwindcss package using yarn/webpacker. This worked fine in the development env but when deployed In the AWS logs I see this error:
Compiling… Compilation failed: (Executor::NonZeroExitStatus)

I tried to reproduce the error locally by precompiling with the RAIL_ENV=production and got the same error with even less explanation:
Compiling… Compilation failed:

This happens right after it writes the stimulus package. Any advice on how to debug this would be appreciated!

@vdolbilov
Copy link

Had the same issue, adding the values in #2316 (error_details: true in webpacker.yml) caused it to spit out some error messages locally so I could debug.

@joelcahalan
Copy link
Author

thanks! Yes, seeing the errors really helps ;)

@rossta
Copy link
Member

rossta commented Nov 5, 2019

@joelcahalan To help debug this issue, please provide more information including your versions of Rails, webpacker, @rails/webpacker, your webpacker.yml config, any customizations to your config/webpack/*.js files. Even better would be a minimal reproduction with the packages you have added to your project and your "packs" files. Otherwise, it's hard to provide the help you're looking for.

@guillaumebriday
Copy link
Member

Is this still an issue for you?

Feel free to reopen if needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants