DEV Community

Juan Vasquez
Juan Vasquez

Posted on

1 1

Error on rails assets:precompile on production (solved)

Once I started the project I update the @rails/webpacker npm package from version 5 to version ^6.0.0-pre.2.

Thinking it was the last possible version, which btw it works great on development mode, the problem was when I tried to upload to Heroku (production) I got the following error message:

ERROR in Conflict: Multiple assets emit different content to the same filename js/.br
ERROR in Conflict: Multiple assets emit different content to the same filename .br
Enter fullscreen mode Exit fullscreen mode

I hadn't any idea 💡 what the heck is the .br format, in fact, I haven’t heard anything about it.

After a little bit of research here we have what the .br format is.

At the end, I just update the webpacker version to 6.0.0-beta.7 and now it works as expected in a production environment.

commit

Note: BTW, was fixed up in this PR.

See you next time!

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

đź‘‹ Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay