Skip to content

Instantly share code, notes, and snippets.

@leesmith
Last active November 20, 2021 22:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leesmith/2cc55b46e023f2cc29dbf239bf9401bd to your computer and use it in GitHub Desktop.
Save leesmith/2cc55b46e023f2cc29dbf239bf9401bd to your computer and use it in GitHub Desktop.
Heroku Rails 6 issue
git push heroku tailwind:master
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 12 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (5/5), 395 bytes | 395.00 KiB/s, done.
Total 5 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Node.js app detected
remote:
remote: -----> Creating runtime environment
remote:
remote: NPM_CONFIG_LOGLEVEL=error
remote: NODE_ENV=production
remote: NODE_MODULES_CACHE=true
remote: NODE_VERBOSE=false
remote:
remote: -----> Installing binaries
remote: engines.node (package.json): 14.2.0
remote: engines.npm (package.json): unspecified (use default)
remote: engines.yarn (package.json): 1.22.4
remote:
remote: Resolving node version 14.2.0...
remote: Downloading and installing node 14.2.0...
remote: Using default npm version: 6.14.4
remote: Resolving yarn version 1.22.4...
remote: Downloading and installing yarn (1.22.4)...
remote: Installed yarn 1.22.4
remote:
remote: -----> Restoring cache
remote: - yarn cache
remote:
remote: -----> Installing dependencies
remote: Installing node modules (yarn.lock)
remote: yarn install v1.22.4
remote: [1/4] Resolving packages...
remote: [2/4] Fetching packages...
remote: info fsevents@1.2.12: The platform "linux" is incompatible with this module.
remote: info "fsevents@1.2.12" is an optional dependency and failed compatibility check. Excluding it from installation.
remote: [3/4] Linking dependencies...
remote: warning " > webpack-dev-server@3.11.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
remote: warning "webpack-dev-server > webpack-dev-middleware@3.7.2" has unmet peer dependency "webpack@^4.0.0".
remote: [4/4] Building fresh packages...
remote: Done in 12.89s.
remote:
remote: -----> Build
remote:
remote: -----> Pruning devDependencies
remote: yarn install v1.22.4
remote: [1/4] Resolving packages...
remote: [2/4] Fetching packages...
remote: info fsevents@1.2.12: The platform "linux" is incompatible with this module.
remote: info "fsevents@1.2.12" is an optional dependency and failed compatibility check. Excluding it from installation.
remote: [3/4] Linking dependencies...
remote: warning " > webpack-dev-server@3.11.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
remote: warning "webpack-dev-server > webpack-dev-middleware@3.7.2" has unmet peer dependency "webpack@^4.0.0".
remote: [4/4] Building fresh packages...
remote: warning Ignored scripts due to flag.
remote: Done in 5.87s.
remote:
remote: -----> Caching build
remote: - yarn cache
remote:
remote: -----> Build succeeded!
remote: ! Unmet dependencies don't fail yarn install but may cause runtime issues
remote: https://github.com/npm/npm/issues/7494
remote:
remote: -----> Ruby app detected
remote: -----> Installing bundler 2.0.2
remote: -----> Removing BUNDLED WITH version in the Gemfile.lock
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.6.6
remote: -----> Installing dependencies using bundler 2.0.2
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: Using rake 13.0.1
remote: Using concurrent-ruby 1.1.6
remote: Using i18n 1.8.2
remote: Using minitest 5.14.1
remote: Using thread_safe 0.3.6
remote: Using tzinfo 1.2.7
remote: Using zeitwerk 2.3.0
remote: Using activesupport 6.0.3.1
remote: Using builder 3.2.4
remote: Using erubi 1.9.0
remote: Using mini_portile2 2.4.0
remote: Using nokogiri 1.10.9
remote: Using rails-dom-testing 2.0.3
remote: Using crass 1.0.6
remote: Using loofah 2.5.0
remote: Using rails-html-sanitizer 1.3.0
remote: Using actionview 6.0.3.1
remote: Using rack 2.2.2
remote: Using rack-test 1.1.0
remote: Using actionpack 6.0.3.1
remote: Using nio4r 2.5.2
remote: Using websocket-extensions 0.1.4
remote: Using websocket-driver 0.7.1
remote: Using actioncable 6.0.3.1
remote: Using globalid 0.4.2
remote: Using activejob 6.0.3.1
remote: Using activemodel 6.0.3.1
remote: Using activerecord 6.0.3.1
remote: Using mimemagic 0.3.5
remote: Using marcel 0.3.3
remote: Using activestorage 6.0.3.1
remote: Using mini_mime 1.0.2
remote: Using mail 2.7.1
remote: Using actionmailbox 6.0.3.1
remote: Using actionmailer 6.0.3.1
remote: Using actiontext 6.0.3.1
remote: Using bcrypt 3.1.13
remote: Using msgpack 1.3.3
remote: Using bootsnap 1.4.6
remote: Using bundler 2.0.2
remote: Using ffi 1.12.2
remote: Using temple 0.8.2
remote: Using thor 1.0.1
remote: Using tilt 2.0.10
remote: Using hamlit 2.11.0
remote: Using method_source 1.0.0
remote: Using pg 1.2.3
remote: Using puma 4.3.5
remote: Using rack-proxy 0.6.5
remote: Using railties 6.0.3.1
remote: Using sprockets 4.0.0
remote: Using sprockets-rails 3.2.1
remote: Using rails 6.0.3.1
remote: Using sassc 2.3.0
remote: Using sassc-rails 2.1.2
remote: Using semantic_range 2.3.0
remote: Using webpacker 5.1.1
remote: Bundle complete! 29 Gemfile dependencies, 57 gems now installed.
remote: Gems in the groups development and test were not installed.
remote: Bundled gems are installed into `./vendor/bundle`
remote: Bundle completed (0.48s)
remote: Cleaning up the bundler cache.
remote: -----> Detecting rake tasks
remote: -----> Detecting rails configuration
remote:
remote: ###### WARNING:
remote:
remote: You set your `config.active_storage.service` to :local in production.
remote: If you are uploading files to this app, they will not persist after the app
remote: is restarted, on one-off dynos, or if the app has multiple dynos.
remote: Heroku applications have an ephemeral file system. To
remote: persist uploaded files, please use a service such as S3 and update your Rails
remote: configuration.
remote:
remote: For more information can be found in this article:
remote: https://devcenter.heroku.com/articles/active-storage-on-heroku
remote:
remote:
remote: ###### WARNING:
remote:
remote: We detected that some binary dependencies required to
remote: use all the preview features of Active Storage are not
remote: present on this system.
remote:
remote: For more information please see:
remote: https://devcenter.heroku.com/articles/active-storage-on-heroku
remote:
remote:
remote:
remote: -----> Discovering process types
remote: Procfile declares types -> web
remote: Default types for buildpack -> console, rake
remote:
remote: -----> Compressing...
remote: Done: 98.5M
remote: -----> Launching...
remote: Released v49
remote: https://decent-authentication.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/decent-authentication.git
163eae5..c08e230 tailwind -> master
2020-05-20T03:50:40.634892+00:00 app[web.1]: I, [2020-05-20T03:50:40.634775 #4] INFO -- : [1baf0217-d188-4fdc-be98-fab2a287e80d] Started GET "/sign-in" for 68.113.127.82 at 2020-05-20 03:50:40 +0000
2020-05-20T03:50:40.641236+00:00 app[web.1]: I, [2020-05-20T03:50:40.641120 #4] INFO -- : [1baf0217-d188-4fdc-be98-fab2a287e80d] Processing by SessionsController#new as HTML
2020-05-20T03:50:40.663860+00:00 app[web.1]: I, [2020-05-20T03:50:40.663689 #4] INFO -- : [1baf0217-d188-4fdc-be98-fab2a287e80d] Rendering sessions/new.html.haml within layouts/application
2020-05-20T03:50:40.727063+00:00 app[web.1]: I, [2020-05-20T03:50:40.726923 #4] INFO -- : [1baf0217-d188-4fdc-be98-fab2a287e80d] Rendered sessions/new.html.haml within layouts/application (Duration: 62.9ms | Allocations: 11294)
2020-05-20T03:50:40.840855+00:00 app[web.1]: I, [2020-05-20T03:50:40.840723 #4] INFO -- : [1baf0217-d188-4fdc-be98-fab2a287e80d] Completed 500 Internal Server Error in 199ms (Allocations: 23897)
2020-05-20T03:50:40.844384+00:00 app[web.1]: F, [2020-05-20T03:50:40.844304 #4] FATAL -- : [1baf0217-d188-4fdc-be98-fab2a287e80d]
2020-05-20T03:50:40.844386+00:00 app[web.1]: [1baf0217-d188-4fdc-be98-fab2a287e80d] ActionView::Template::Error (Webpacker can't find application.css in /app/public/packs/manifest.json. Possible causes:
2020-05-20T03:50:40.844387+00:00 app[web.1]: 1. You want to set webpacker.yml value of compile to true for your environment
2020-05-20T03:50:40.844387+00:00 app[web.1]: unless you are using the `webpack -w` or the webpack-dev-server.
2020-05-20T03:50:40.844388+00:00 app[web.1]: 2. webpack has not yet re-run to reflect updates.
2020-05-20T03:50:40.844389+00:00 app[web.1]: 3. You have misconfigured Webpacker's config/webpacker.yml file.
2020-05-20T03:50:40.844389+00:00 app[web.1]: 4. Your webpack configuration is not creating a manifest.
2020-05-20T03:50:40.844390+00:00 app[web.1]: Your manifest contains:
2020-05-20T03:50:40.844391+00:00 app[web.1]: {
2020-05-20T03:50:40.844392+00:00 app[web.1]: }
2020-05-20T03:50:40.844392+00:00 app[web.1]: ):
2020-05-20T03:50:40.844392+00:00 app[web.1]: [1baf0217-d188-4fdc-be98-fab2a287e80d] 7: %title Decent Authentication
2020-05-20T03:50:40.844393+00:00 app[web.1]: [1baf0217-d188-4fdc-be98-fab2a287e80d] 8: = csrf_meta_tags
2020-05-20T03:50:40.844393+00:00 app[web.1]: [1baf0217-d188-4fdc-be98-fab2a287e80d] 9: = csp_meta_tag
2020-05-20T03:50:40.844394+00:00 app[web.1]: [1baf0217-d188-4fdc-be98-fab2a287e80d] 10: = stylesheet_pack_tag 'application', media: 'all'
2020-05-20T03:50:40.844395+00:00 app[web.1]: [1baf0217-d188-4fdc-be98-fab2a287e80d] 11: = javascript_pack_tag 'application'
2020-05-20T03:50:40.844396+00:00 app[web.1]: [1baf0217-d188-4fdc-be98-fab2a287e80d] 12: <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🔐</text></svg>">
2020-05-20T03:50:40.844396+00:00 app[web.1]: [1baf0217-d188-4fdc-be98-fab2a287e80d] 13: %body{class: "#{controller_name} #{action_name}"}
2020-05-20T03:50:40.844397+00:00 app[web.1]: [1baf0217-d188-4fdc-be98-fab2a287e80d]
2020-05-20T03:50:40.844398+00:00 app[web.1]: [1baf0217-d188-4fdc-be98-fab2a287e80d] app/views/layouts/application.html.haml:10
2020-05-20T03:50:40.846468+00:00 heroku[router]: at=info method=GET path="/sign-in" host=decent-authentication.herokuapp.com request_id=1baf0217-d188-4fdc-be98-fab2a287e80d fwd="68.113.127.82" dyno=web.1 connect=1ms service=222ms status=500 bytes=1669 protocol=https
@krzyskk
Copy link

krzyskk commented Nov 20, 2021

@leesmith What was the cause of this error.

@leesmith
Copy link
Author

@krzyskk I don't remember exactly...so many things could cause that exact webpack error.

But here's the commit I made a few days after this gist. I must have solved my issue in that commit.

leesmith/decent_authentication@a98e967

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment