Error when running fly deploy

Hello! I am having this error when running fly deploy:
Error: failed to fetch an image or build from source: error building: failed to solve: executor failed running [/bin/bash -o pipefail -c SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile]: exit code: 1
Could anyone help me with this?

Hi,

It’s beyond my rails knowledge but someone on here will be able to help.

I’d recommend posting your fly.toml and Dockerfile (removing anything you don’t want public, like the app’s name) to reveal what it’s trying to do.

fly.toml
# fly.toml app configuration file generated for learn-easy-black-sound-6251 on 2024-02-09T16:51:28-03:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'MY APP NAME'
primary_region = 'scl'
console_command = '/rails/bin/rails console'

[build]

[http_service]
  internal_port = 3000
  force_https = true
  auto_stop_machines = true
  auto_start_machines = true
  min_machines_running = 0
  processes = ['app']

[checks]
  [checks.status]
    port = 3000
    type = 'http'
    interval = '10s'
    timeout = '2s'
    grace_period = '5s'
    method = 'GET'
    path = '/up'
    protocol = 'http'
    tls_skip_verify = false

    [checks.status.headers]
      X-Forwarded-Proto = 'https'

[[vm]]
  cpu_kind = 'shared'
  cpus = 1
  memory_mb = 1024

[[statics]]
  guest_path = '/rails/public'
  url_prefix = '/'
[deploy]
  release_command = "./bin/rails db:prepare"

[env]
  DATABASE_URL = "sqlite3:///mnt/volume/production.sqlite3"

[mounts]
  source = "sqlite3_volume"
  destination = "/mnt/volume"
Dockerfile
# syntax = docker/dockerfile:1

# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
ARG RUBY_VERSION=3.1.2
FROM quay.io/evl.ms/fullstaq-ruby:${RUBY_VERSION}-jemalloc-slim as base

LABEL fly_launch_runtime="rails"

# Rails app lives here
WORKDIR /rails

# Set production environment
ENV BUNDLE_DEPLOYMENT="1" \
    BUNDLE_PATH="/usr/local/bundle" \
    BUNDLE_WITHOUT="development:test" \
    RAILS_ENV="production"

# Update gems and bundler
RUN gem update --system --no-document && \
    gem install -N bundler

# Install packages needed to install nodejs
RUN apt-get update -qq && \
    apt-get install --no-install-recommends -y curl && \
    rm -rf /var/lib/apt/lists /var/cache/apt/archives

# Install Node.js
ARG NODE_VERSION=16.15.1
ENV PATH=/usr/local/node/bin:$PATH
RUN curl -sL https://github.com/nodenv/node-build/archive/master.tar.gz | tar xz -C /tmp/ && \
    /tmp/node-build-master/bin/node-build "${NODE_VERSION}" /usr/local/node && \
    rm -rf /tmp/node-build-master


# Throw-away build stage to reduce size of final image
FROM base as build

# Install packages needed to build gems and node modules
RUN apt-get update -qq && \
    apt-get install --no-install-recommends -y build-essential libpq-dev libyaml-dev node-gyp pkg-config python-is-python3

# Install yarn
ARG YARN_VERSION=1.22.21
RUN npm install -g yarn@$YARN_VERSION

# Build options
ENV PATH="/usr/local/node/bin:$PATH"

# Install application gems
COPY --link Gemfile Gemfile.lock ./
RUN bundle install && \
    bundle exec bootsnap precompile --gemfile && \
    rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git

# Install node modules
COPY --link .yarnrc package.json package-lock.json yarn.lock ./
COPY --link .yarn/releases/* .yarn/releases/
RUN yarn install --frozen-lockfile

# Copy application code
COPY --link . .

# Precompile bootsnap code for faster boot times
RUN bundle exec bootsnap precompile app/ lib/

# Precompiling assets for production without requiring secret RAILS_MASTER_KEY
RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile


# Final stage for app image
FROM base

# Install packages needed for deployment
RUN apt-get update -qq && \
    apt-get install --no-install-recommends -y curl iputils-ping libsqlite3-0 net-tools postgresql-client procps traceroute && \
    rm -rf /var/lib/apt/lists /var/cache/apt/archives

# Copy built artifacts: gems, application
COPY --from=build "${BUNDLE_PATH}" "${BUNDLE_PATH}"
COPY --from=build /rails /rails

# Run and own only the runtime files as a non-root user for security
RUN groupadd --system --gid 1000 rails && \
    useradd rails --uid 1000 --gid 1000 --create-home --shell /bin/bash && \
    chown -R 1000:1000 db log storage tmp
USER 1000:1000

# Entrypoint sets up the container.
ENTRYPOINT ["/rails/bin/docker-entrypoint"]

# Start the server by default, this can be overwritten at runtime
EXPOSE 3000
CMD ["./bin/rails", "server"]

1 Like

What immediately precedes this line? Given this one line, all I can tell is that assets:precompile failed. Normally it does so noisily, and will tell you why it failed.

If I had to take a guess, the most common reason for failure would be described here:

[quote=“rubys, post:4, topic:18175”]

Nothing, it ends up there!

what comes before this line?

=> ERROR [build 10/10] RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile 7.3s

[build 10/10] RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile:
2.269 W, [2024-02-10T21:28:45.064962 #1] WARN – : You are running SQLite in production, this is generally not recommended. You can disable this warning by setting “config.active_record.sqlite3_production_warning=false”.
4.243 I, [2024-02-10T21:28:47.039432 #1] INFO – : Writing /rails/public/assets/manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js
4.244 I, [2024-02-10T21:28:47.039899 #1] INFO – : Writing /rails/public/assets/manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js.gz
4.244 I, [2024-02-10T21:28:47.040066 #1] INFO – : Writing /rails/public/assets/application-ef7d3339277b51afd7ec94b3b7ea1f7f5b3976da999c06454cf49f439c16b3c1.css
4.244 I, [2024-02-10T21:28:47.040627 #1] INFO – : Writing /rails/public/assets/application-ef7d3339277b51afd7ec94b3b7ea1f7f5b3976da999c06454cf49f439c16b3c1.css.gz
4.245 I, [2024-02-10T21:28:47.041045 #1] INFO – : Writing /rails/public/assets/bootstrap/glyphicons-halflings-regular-0805fb1fe24235f70a639f67514990e4bfb6d2cfb00ca563ad4b553c240ddc33.eot
4.245 I, [2024-02-10T21:28:47.041341 #1] INFO – : Writing /rails/public/assets/bootstrap/glyphicons-halflings-regular-0805fb1fe24235f70a639f67514990e4bfb6d2cfb00ca563ad4b553c240ddc33.eot.gz
4.245 I, [2024-02-10T21:28:47.041579 #1] INFO – : Writing /rails/public/assets/bootstrap/glyphicons-halflings-regular-403acfcf0cbaebd1c28b404eec442cea53642644b3a73f91c5a4ab46859af772.woff2
4.246 I, [2024-02-10T21:28:47.042085 #1] INFO – : Writing /rails/public/assets/bootstrap/glyphicons-halflings-regular-0703369a358a012c0011843ae337a8a20270c336948a8668df5cb89a8827299b.woff
4.248 I, [2024-02-10T21:28:47.044043 #1] INFO – : Writing /rails/public/assets/bootstrap/glyphicons-halflings-regular-7c9caa5f4e16169b0129fdf93c84e85ad14d6c107eb1b0ad60b542daf01ee1f0.ttf
4.248 I, [2024-02-10T21:28:47.044549 #1] INFO – : Writing /rails/public/assets/bootstrap/glyphicons-halflings-regular-7c9caa5f4e16169b0129fdf93c84e85ad14d6c107eb1b0ad60b542daf01ee1f0.ttf.gz
4.249 I, [2024-02-10T21:28:47.045036 #1] INFO – : Writing /rails/public/assets/bootstrap/glyphicons-halflings-regular-22d0c88a49d7d0ebe45627143a601061a32a46a9b9afd2dc7f457436f5f15f6e.svg
4.252 I, [2024-02-10T21:28:47.048827 #1] INFO – : Writing /rails/public/assets/bootstrap/glyphicons-halflings-regular-22d0c88a49d7d0ebe45627143a601061a32a46a9b9afd2dc7f457436f5f15f6e.svg.gz
4.253 I, [2024-02-10T21:28:47.049446 #1] INFO – : Writing /rails/public/assets/custom-ef7d3339277b51afd7ec94b3b7ea1f7f5b3976da999c06454cf49f439c16b3c1.css
4.257 I, [2024-02-10T21:28:47.052694 #1] INFO – : Writing /rails/public/assets/custom-ef7d3339277b51afd7ec94b3b7ea1f7f5b3976da999c06454cf49f439c16b3c1.css.gz
4.257 I, [2024-02-10T21:28:47.053658 #1] INFO – : Writing /rails/public/assets/bootstrap/glyphicons-halflings-regular-22d0c88a49d7d0ebe45627143a601061a32a46a9b9afd2dc7f457436f5f15f6e.svg.gz
4.258 I, [2024-02-10T21:28:47.053861 #1] INFO – : Writing /rails/public/assets/controllers/application-368d98631bccbf2349e0d4f8269afb3fe9625118341966de054759d96ea86c7e.js
4.258 I, [2024-02-10T21:28:47.053961 #1] INFO – : Writing /rails/public/assets/controllers/application-368d98631bccbf2349e0d4f8269afb3fe9625118341966de054759d96ea86c7e.js.gz
4.258 I, [2024-02-10T21:28:47.054078 #1] INFO – : Writing /rails/public/assets/controllers/hello_controller-549135e8e7c683a538c3d6d517339ba470fcfb79d62f738a0a089ba41851a554.js
4.258 I, [2024-02-10T21:28:47.054165 #1] INFO – : Writing /rails/public/assets/controllers/hello_controller-549135e8e7c683a538c3d6d517339ba470fcfb79d62f738a0a089ba41851a554.js.gz
4.258 I, [2024-02-10T21:28:47.054433 #1] INFO – : Writing /rails/public/assets/controllers/index-2db729dddcc5b979110e98de4b6720f83f91a123172e87281d5a58410fc43806.js
4.258 I, [2024-02-10T21:28:47.054522 #1] INFO – : Writing /rails/public/assets/controllers/index-2db729dddcc5b979110e98de4b6720f83f91a123172e87281d5a58410fc43806.js.gz
4.258 I, [2024-02-10T21:28:47.054664 #1] INFO – : Writing /rails/public/assets/packs/application-29c46641bee8e06e5792e27aae45d9fa7d0fee51ffeadc2efb1442a9133ad055.js
4.258 I, [2024-02-10T21:28:47.054771 #1] INFO – : Writing /rails/public/assets/packs/application-29c46641bee8e06e5792e27aae45d9fa7d0fee51ffeadc2efb1442a9133ad055.js.gz
4.259 I, [2024-02-10T21:28:47.054912 #1] INFO – : Writing /rails/public/assets/turbo-694adf671b9be722aa9b327e9b26b769d91f9235b85e3633a58d001c9974bba1.js
4.259 I, [2024-02-10T21:28:47.055012 #1] INFO – : Writing /rails/public/assets/turbo-694adf671b9be722aa9b327e9b26b769d91f9235b85e3633a58d001c9974bba1.js.gz
4.259 I, [2024-02-10T21:28:47.055157 #1] INFO – : Writing /rails/public/assets/turbo.min-dfd93b3092d1d0ff56557294538d069bdbb28977d3987cb39bc0dd892f32fc57.js
4.259 I, [2024-02-10T21:28:47.055262 #1] INFO – : Writing /rails/public/assets/turbo.min-dfd93b3092d1d0ff56557294538d069bdbb28977d3987cb39bc0dd892f32fc57.js.gz
4.259 I, [2024-02-10T21:28:47.055407 #1] INFO – : Writing /rails/public/assets/turbo.min.js-24086855a1740f1ed123d14c033071ab88963d4eb7c9875ea45441d48d8a79d2.map
4.259 I, [2024-02-10T21:28:47.055510 #1] INFO – : Writing /rails/public/assets/turbo.min.js-24086855a1740f1ed123d14c033071ab88963d4eb7c9875ea45441d48d8a79d2.map.gz
4.259 I, [2024-02-10T21:28:47.055654 #1] INFO – : Writing /rails/public/assets/actiontext-78de0ebeae470799f9ec25fd0e20ae2d931df88c2ff9315918d1054a2fca2596.js
4.259 I, [2024-02-10T21:28:47.055758 #1] INFO – : Writing /rails/public/assets/actiontext-78de0ebeae470799f9ec25fd0e20ae2d931df88c2ff9315918d1054a2fca2596.js.gz
4.260 I, [2024-02-10T21:28:47.056091 #1] INFO – : Writing /rails/public/assets/actiontext.esm-328ef022563f73c1b9b45ace742bd21330da0f6bd6c1c96d352d52fc8b8857e5.js
4.260 I, [2024-02-10T21:28:47.056208 #1] INFO – : Writing /rails/public/assets/actiontext.esm-328ef022563f73c1b9b45ace742bd21330da0f6bd6c1c96d352d52fc8b8857e5.js.gz
4.260 I, [2024-02-10T21:28:47.056372 #1] INFO – : Writing /rails/public/assets/trix-e17a480fcb4e30c8571f0fed42dc81de5faeef93755ca30fe9623eb3f5c709e5.js
4.260 I, [2024-02-10T21:28:47.056478 #1] INFO – : Writing /rails/public/assets/trix-e17a480fcb4e30c8571f0fed42dc81de5faeef93755ca30fe9623eb3f5c709e5.js.gz
4.260 I, [2024-02-10T21:28:47.056626 #1] INFO – : Writing /rails/public/assets/trix-5552afe828fe79c41e53b9cc3616e9d7b8c2de1979ea62cbd663b88426ec41de.css
4.260 I, [2024-02-10T21:28:47.056726 #1] INFO – : Writing /rails/public/assets/trix-5552afe828fe79c41e53b9cc3616e9d7b8c2de1979ea62cbd663b88426ec41de.css.gz
4.261 I, [2024-02-10T21:28:47.056865 #1] INFO – : Writing /rails/public/assets/stimulus-f75215805563870a61ee9dc5a207ce46d4675c7e667558a54344fd1e7baa697f.js
4.261 I, [2024-02-10T21:28:47.056968 #1] INFO – : Writing /rails/public/assets/stimulus-f75215805563870a61ee9dc5a207ce46d4675c7e667558a54344fd1e7baa697f.js.gz
4.261 I, [2024-02-10T21:28:47.057105 #1] INFO – : Writing /rails/public/assets/stimulus-autoloader-c584942b568ba74879da31c7c3d51366737bacaf6fbae659383c0a5653685693.js
4.261 I, [2024-02-10T21:28:47.057207 #1] INFO – : Writing /rails/public/assets/stimulus-autoloader-c584942b568ba74879da31c7c3d51366737bacaf6fbae659383c0a5653685693.js.gz
4.261 I, [2024-02-10T21:28:47.057347 #1] INFO – : Writing /rails/public/assets/stimulus-importmap-autoloader-db2076c783bf2dbee1226e2add52fef290b5d31b5bcd1edd999ac8a6dd31c44a.js
4.261 I, [2024-02-10T21:28:47.057468 #1] INFO – : Writing /rails/public/assets/stimulus-importmap-autoloader-db2076c783bf2dbee1226e2add52fef290b5d31b5bcd1edd999ac8a6dd31c44a.js.gz
4.261 I, [2024-02-10T21:28:47.057607 #1] INFO – : Writing /rails/public/assets/stimulus-loading-3576ce92b149ad5d6959438c6f291e2426c86df3b874c525b30faad51b0d96b3.js
4.261 I, [2024-02-10T21:28:47.057705 #1] INFO – : Writing /rails/public/assets/stimulus-loading-3576ce92b149ad5d6959438c6f291e2426c86df3b874c525b30faad51b0d96b3.js.gz
4.262 I, [2024-02-10T21:28:47.057999 #1] INFO – : Writing /rails/public/assets/stimulus.min-dd364f16ec9504dfb72672295637a1c8838773b01c0b441bd41008124c407894.js
4.262 I, [2024-02-10T21:28:47.058492 #1] INFO – : Writing /rails/public/assets/stimulus.min-dd364f16ec9504dfb72672295637a1c8838773b01c0b441bd41008124c407894.js.gz
4.262 I, [2024-02-10T21:28:47.058681 #1] INFO – : Writing /rails/public/assets/stimulus-autoloader-c584942b568ba74879da31c7c3d51366737bacaf6fbae659383c0a5653685693.js
4.263 I, [2024-02-10T21:28:47.059064 #1] INFO – : Writing /rails/public/assets/stimulus-autoloader-c584942b568ba74879da31c7c3d51366737bacaf6fbae659383c0a5653685693.js.gz
4.263 I, [2024-02-10T21:28:47.059346 #1] INFO – : Writing /rails/public/assets/stimulus-importmap-autoloader-db2076c783bf2dbee1226e2add52fef290b5d31b5bcd1edd999ac8a6dd31c44a.js
4.263 I, [2024-02-10T21:28:47.059455 #1] INFO – : Writing /rails/public/assets/stimulus-importmap-autoloader-db2076c783bf2dbee1226e2add52fef290b5d31b5bcd1edd999ac8a6dd31c44a.js.gz
4.263 I, [2024-02-10T21:28:47.059586 #1] INFO – : Writing /rails/public/assets/stimulus-loading-3576ce92b149ad5d6959438c6f291e2426c86df3b874c525b30faad51b0d96b3.js
4.263 I, [2024-02-10T21:28:47.059651 #1] INFO – : Writing /rails/public/assets/stimulus-loading-3576ce92b149ad5d6959438c6f291e2426c86df3b874c525b30faad51b0d96b3.js.gz
4.263 I, [2024-02-10T21:28:47.059754 #1] INFO – : Writing /rails/public/assets/stimulus.min.js-2cc63625fa177963b45da974806e7aee846cbf1d4930815733d0fdf3fb232325.map
4.264 I, [2024-02-10T21:28:47.059820 #1] INFO – : Writing /rails/public/assets/stimulus.min.js-2cc63625fa177963b45da974806e7aee846cbf1d4930815733d0fdf3fb232325.map.gz
4.264 I, [2024-02-10T21:28:47.059911 #1] INFO – : Writing /rails/public/assets/activestorage-503a4fe23aabfbcb752dad255f01835904e6961d5f20d1de13987a691c27d9cd.js
4.264 I, [2024-02-10T21:28:47.059977 #1] INFO – : Writing /rails/public/assets/activestorage-503a4fe23aabfbcb752dad255f01835904e6961d5f20d1de13987a691c27d9cd.js.gz
4.264 I, [2024-02-10T21:28:47.060236 #1] INFO – : Writing /rails/public/assets/activestorage.esm-b3f7f0a5ef90530b509c5e681c4b3ef5d5046851e5b70d57fdb45e32b039c883.js
4.264 I, [2024-02-10T21:28:47.060319 #1] INFO – : Writing /rails/public/assets/activestorage.esm-b3f7f0a5ef90530b509c5e681c4b3ef5d5046851e5b70d57fdb45e32b039c883.js.gz
4.264 I, [2024-02-10T21:28:47.060414 #1] INFO – : Writing /rails/public/assets/actioncable-1c7f008c6deb7b55c6878be38700ff6bf56b75444a086fa1f46e3b781365a3ea.js
4.264 I, [2024-02-10T21:28:47.060479 #1] INFO – : Writing /rails/public/assets/actioncable-1c7f008c6deb7b55c6878be38700ff6bf56b75444a086fa1f46e3b781365a3ea.js.gz
4.264 I, [2024-02-10T21:28:47.060569 #1] INFO – : Writing /rails/public/assets/actioncable.esm-06609b0ecaffe2ab952021b9c8df8b6c68f65fc23bee728fc678a2605e1ce132.js
4.264 I, [2024-02-10T21:28:47.060634 #1] INFO – : Writing /rails/public/assets/actioncable.esm-06609b0ecaffe2ab952021b9c8df8b6c68f65fc23bee728fc678a2605e1ce132.js.gz
4.972 Compiling…
7.292 Compilation failed:
7.292 warning package.json: No license field
7.292 [webpack-cli] Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
7.292 - configuration.node should be one of these:
7.292 false | object { __dirname?, __filename?, global? }
7.292 → Include polyfills or mocks for various node stuff.
7.292 Details:
7.292 * configuration.node has an unknown property ‘dgram’. These properties are valid:
7.292 object { __dirname?, __filename?, global? }
7.292 → Options object for node compatibility features.
7.292 * configuration.node has an unknown property ‘fs’. These properties are valid:
7.292 object { __dirname?, __filename?, global? }
7.292 → Options object for node compatibility features.
7.292 * configuration.node has an unknown property ‘net’. These properties are valid:
7.292 object { __dirname?, __filename?, global? }
7.292 → Options object for node compatibility features.
7.292 * configuration.node has an unknown property ‘tls’. These properties are valid:
7.292 object { __dirname?, __filename?, global? }
7.292 → Options object for node compatibility features.
7.292 * configuration.node has an unknown property ‘child_process’. These properties are valid:
7.292 object { __dirname?, __filename?, global? }
7.292 → Options object for node compatibility features.
7.292


Error: failed to fetch an image or build from source: error building: failed to solve: executor failed running [/bin/bash -o pipefail -c SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile]: exit code: 1

This is the complete error

Try downgrading webpack from version 5 to version 4 in your package.json?

From scanning the web, it appears that a number of polyfills that were present in version 4 were removed from version 5, and is seems that your webpack.config.js references these polyfills.

I could solve it running this:

bin/rails generate dockerfile --precompile=defer

rails, to make it easier to identify in the top-level list…

24-02-10T23:59:02Z app[148e729f019589] scl [info][fd0c9aa4-b6c5-484a-a7ea-1786473fac0c] ActionView::Template::Error (The asset “application.css” is not present in the asset pipeline.
2024-02-10T23:59:02Z app[148e729f019589] scl [info]):
2024-02-10T23:59:02Z app[148e729f019589] scl [info][fd0c9aa4-b6c5-484a-a7ea-1786473fac0c] 6: <%= csrf_meta_tags %>
2024-02-10T23:59:02Z app[148e729f019589] scl [info][fd0c9aa4-b6c5-484a-a7ea-1786473fac0c] 7: <%= csp_meta_tag %>
2024-02-10T23:59:02Z app[148e729f019589] scl [info][fd0c9aa4-b6c5-484a-a7ea-1786473fac0c] 8:
2024-02-10T23:59:02Z app[148e729f019589] scl [info][fd0c9aa4-b6c5-484a-a7ea-1786473fac0c] 9: <%= stylesheet_link_tag ‘application’, media: ‘all’, ‘data-turbolinks-track’: ‘reload’ %>
2024-02-10T23:59:02Z app[148e729f019589] scl [info][fd0c9aa4-b6c5-484a-a7ea-1786473fac0c] 10: <%= javascript_pack_tag ‘application’, ‘data-turbolinks-track’: ‘reload’ %>
2024-02-10T23:59:02Z app[148e729f019589] scl [info][fd0c9aa4-b6c5-484a-a7ea-1786473fac0c] 11: <%= javascript_importmap_tags %>
2024-02-10T23:59:02Z app[148e729f019589] scl [info][fd0c9aa4-b6c5-484a-a7ea-1786473fac0c] 12:
2024-02-10T23:59:02Z app[148e729f019589] scl [info][fd0c9aa4-b6c5-484a-a7ea-1786473fac0c]
2024-02-10T23:59:02Z app[148e729f019589] scl [info][fd0c9aa4-b6c5-484a-a7ea-1786473fac0c] app/views/layouts/application.html.erb:9

Help with this error now?

That actually took you backwards. Previously:

4.244 I, [2024-02-10T21:28:47.040066 #1] INFO – : Writing /rails/public/assets/application-ef7d3339277b51afd7ec94b3b7ea1f7f5b3976da999c06454cf49f439c16b3c1.css

Now:

24-02-10T23:59:02Z app[148e729f019589] scl [info][fd0c9aa4-b6c5-484a-a7ea-1786473fac0c] ActionView::Template::Error (The asset “application.css” is not present in the asset pipeline.

Ohhh :frowning:
At least it allowed be to finish the deploy.
What do you recommend I should do?

Can you post your webpack.config.js and package.json? I don’t have much experience with webpack, but I can take a look.

The good news is that if you defer the precompile causes deploy to succeed, that means that solving the precompile problem is the last issue needed to be resolved. But please do revert the precompile=defer.

package.json:
{
“dependencies”: {
@rails/webpacker”: “5.4.4”,
“webpack”: “^5.90.1”
},
“devDependencies”: {
“webpack-cli”: “^5.1.4”,
“webpack-dev-server”: “^3”
},
“packageManager”: “yarn@1.22.21”
}
I dont have this file webpack.config.js :frowning:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.