Skip to main content

All Questions

Tagged with
1 vote
1 answer
57 views

Rails 7 with Import Maps and CSS Bundling: Assets Not Served from /builds Directory

Rails 7 with Import Maps and CSS Bundling: Assets Not Served from /builds Directory I'm working on a Rails 7 application where I'm using Import Maps for JavaScript and CSS Bundling via Yarn instead of ...
bonhoffer's user avatar
  • 1,453
0 votes
0 answers
335 views

Yarn build failing because of babel plugin "Error: Cannot find package '@babel/plugin-preset-plugin-proposal-class-properties'"

I'm working on a rails 7 app that uses yarn. I've been trying for several hours to debug an issue during the built process without luck. When I call yarn build, the build fails with: yarn run v1.22.19 ...
phoxley's user avatar
  • 474
1 vote
0 answers
384 views

Speed up yarn install in Rails application docker build

I have a Rails application that takes a bit too long to build. During rake assets:precompile it seems to fire yarn to install some packages, this takes ages: #22 11.04 yarn install v1.22.19 #23 11.18 [...
Nick M's user avatar
  • 2,502
0 votes
1 answer
5k views

yarn install fails in docker build but succeeds when run in container

I'm unable to get yarn install to work when executed in Dockerfile by docker build but it works when run from command line within the container. Dockerfile (most of relevant bits) FROM ruby:2.7.6 RUN ...
Meltemi's user avatar
  • 38.2k
1 vote
0 answers
383 views

Rails-React app deployment fails on esbuild bundling because of inconsistent case-sensitiveness

I try to deploy a rails-react app and get an unexpected behaviour. When I try to deploy, deployment fails under certain conditions. I use Rails 7 with esbuild in combination with React. The deployment ...
SEJU's user avatar
  • 1,115
0 votes
0 answers
600 views

CircleCI + Rails 7 + Yarn + assets:precompile - `yarn: not found`

I am using Circle CI to run RSpec tests on a Rails project. I'm new to CircleCI, so I'm piecing together a build script from examples. My tests are failing because application.css is not in the asset ...
John's user avatar
  • 9,388
2 votes
1 answer
316 views

Fly deployment fails: RUN bundle exec rails assets:precompile

I recently upgraded to Rails 7. Everything works locally (including bundle exec rails assets:precompile however if I build my app in Docker (to deploy to Fly) I get to this line: RUN bundle exec ...
tfantina's user avatar
  • 794
1 vote
0 answers
770 views

Error yarn and esbuild 'The linux-x64 architecture is incompatible with this module, link skipped.'

I try to install bootstrap 5 and popper via esbuild. I inatalled esbuild npm install esbuild, run npm install bootstrap and npm i popper. Than I added gems : gem "jsbundling-rails", "~&...
Elena's user avatar
  • 41
4 votes
1 answer
6k views

Yarn Unknown Syntax Error: Unsupported option name ("--check-files")

When I try to run yarn install --check-files on a rails repo that I cloned I'm getting the following error: Unknown Syntax Error: Unsupported option name ("--check-files"). $ yarn install [-...
jwsandeman's user avatar
1 vote
0 answers
815 views

Permission denied when running Ruby on Rails in a docker container

Trying to run a ruby on rails app, here is the docker-compose.yml: version: '3' services: postgres: image: postgres:11 volumes: - ./tmp/db:/app/tmp/db environment: ...
Michael Brennan's user avatar
0 votes
1 answer
1k views

using fontawesome with package managers not working?

I'm struggling with trying to get fontawesome icons to show when using the yarn or npm installs. I have tried a lot of things, but am now error free in the console. I have a pro license, am using v.6 ...
Dick Kirkland's user avatar
1 vote
0 answers
528 views

Yarn: error `install` has been replaced with `add` but it won't run add command either

I'm on Ubuntu. Rails 6 project. I'm trying to add new packages to my project but it won't accept the yarn install nor yarn add commands. I tried adding flatpìckr using yarn install flatpickr and it ...
pinkfloyd90's user avatar
1 vote
0 answers
466 views

Font awesome issue Rails 7

I just cloned my repo from Github, ran the rails assets:precomplie and the font awesome gem was installed with the *= require font-awesome included in the application.css and @import "font-...
Kamidesu's user avatar
  • 111
8 votes
3 answers
3k views

How do I ensure assets are present with Rail 7, cssbundling-rails, jsbundling-rails in test mode (RSpec)?

I'm upgrading a large, commercial (proprietary) Rails 6 application to Rails 7. We never used Webpacker, and are instead going directly from bundled gems for things like Bootstrap, to the "Rails ...
Andrew Hodgkinson's user avatar
0 votes
2 answers
1k views

'Yarn: warning Integrity check: System parameters don't match' error. What exactly does it mean and how can I fix it?

Last night I created a new project, started working on it no problems (migrations, rails server running, etc.) and today when I want to generate a new model via rails g model model_name I started ...
pinkfloyd90's user avatar

15 30 50 per page
1
2 3 4 5
11