We've moved discussions to Discord

Error deploying app using esbuild css and js bundling

Rob McCormick
I'm updating my app to use the new css and js bundling with esbuild. I've made all the changes to my app but am unable to deploy to heroku.

I've run the two buildpack commands from Chris's update docs, but get the following error.

It seems to be an issue on turbo-rails, but I've not been able to find a solution.

Anyone seen this or have any ideas how to fix it?

Enumerating objects: 1576, done.
Counting objects: 100% (1576/1576), done.
Delta compression using up to 8 threads
Compressing objects: 100% (1362/1362), done.
Writing objects: 100% (1576/1576), 698.81 KiB | 13.44 MiB/s, done.
Total 1576 (delta 332), reused 1152 (delta 104)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Building on the Heroku-20 stack
remote: -----> Using buildpacks:
remote:        1. heroku/nodejs
remote:        2. heroku/ruby
remote: -----> Node.js app detected
remote:        
remote: -----> Creating runtime environment
remote:        
remote:        NPM_CONFIG_LOGLEVEL=error
remote:        USE_YARN_CACHE=true
remote:        NODE_VERBOSE=false
remote:        NODE_ENV=production
remote:        NODE_MODULES_CACHE=true
remote:        
remote: -----> Installing binaries
remote:        engines.node (package.json):  unspecified
remote:        engines.npm (package.json):   unspecified (use default)
remote:        engines.yarn (package.json):  unspecified (use default)
remote:        
remote:        Resolving node version 14.x...
remote:        Downloading and installing node 14.18.1...
remote:        Using default npm version: 6.14.15
remote:        Resolving yarn version 1.22.x...
remote:        Downloading and installing yarn (1.22.17)
remote:        Installed yarn 1.22.17
remote:        
remote: -----> Installing dependencies
remote:        Installing node modules (yarn.lock)
remote:        yarn install v1.22.17
remote:        [1/4] Resolving packages...
remote:        [2/4] Fetching packages...
remote:        [3/4] Linking dependencies...
remote:        [4/4] Building fresh packages...
remote:        Done in 20.49s.
remote:        
remote: -----> Build
remote:        Running build (yarn)
remote:        yarn run v1.22.17
remote:        $ node esbuild.config.js
remote:        Done in 0.29s.
remote:        
remote: -----> Pruning devDependencies
remote:        yarn install v1.22.17
remote:        [1/4] Resolving packages...
remote:        [2/4] Fetching packages...
remote:        [3/4] Linking dependencies...
remote:        [4/4] Building fresh packages...
remote:        warning Ignored scripts due to flag.
remote:        Done in 1.13s.
remote:        
remote: -----> Caching build
remote:        - yarn cache
remote:        
remote: -----> Build succeeded!
remote: -----> Ruby app detected
remote: -----> Installing bundler 2.2.21
remote: -----> Removing BUNDLED WITH version in the Gemfile.lock
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-3.0.2
remote: -----> Installing dependencies using bundler 2.2.21
remote:        Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
remote:        Fetching gem metadata from https://rubygems.org/
remote:        Fetching gem metadata from https://rubygems.org/............
remote:        Fetching https://github.com/excid3/administrate.git
remote:        Fetching https://github.com/heartcombo/responders.git
remote:        Fetching https://github.com/rails/cssbundling-rails.git
remote:        Fetching https://github.com/rails/jsbundling-rails.git
remote:        Could not find turbo-rails-7.1.1 in any of the sources
remote:        Bundler Output: Fetching gem metadata from https://rubygems.org/
remote:        Fetching gem metadata from https://rubygems.org/............
remote:        Fetching https://github.com/excid3/administrate.git
remote:        Fetching https://github.com/heartcombo/responders.git
remote:        Fetching https://github.com/rails/cssbundling-rails.git
remote:        Fetching https://github.com/rails/jsbundling-rails.git
remote:        Could not find turbo-rails-7.1.1 in any of the sources
remote: 
remote:  !
remote:  !     Failed to install gems via Bundler.
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !       Push rejected to powerful-citadel-50077.
remote: 

Chris Oliver
DHH yanked the package. Just have to update the lock to the latest version. Updated in the repo.
Rob McCormick
Hey Chris, thanks for the quick response. I updated the lock to the latest versions (the same as in the jsp repo) but still have the same issue.

Could it be due to the following reference in line 390 of the Gemfile.lock (in the jsp repo)?

turbo-rails (7.1.1)
Rob McCormick
I found a thread on this on the hotwire site. Turns out I also needed to uninstall turbo-rails and delete the Gemfile.lock before running bundle install. Details in the thread.
Notifications
You’re not receiving notifications from this thread.