'Ruby on Rails project not compilation assets without show errors, Heroku

Preparing app for Rails asset pipeline
   Running: rake assets:precompile
   yarn install v1.22.17
   [1/5] Validating package.json...
   [2/5] Resolving packages...
   [3/5] Fetching packages...
   [4/5] Linking dependencies...
   warning " > [email protected]" has incorrect peer dependency "[email protected]".
   [5/5] Building fresh packages...
   Done in 27.74s.
   Compiling...
   Compilation failed:
   
 !
 !     Precompiling assets failed.
 !
 !     Push rejected, failed to compile Ruby app.
 !     Push failed

On local machine RAILS_ENV=production rails assets:precompile compile without errors.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source