Hi everyone! I'm Luis nice to meet you all. I use ...
# general
l
Hi everyone! I'm Luis nice to meet you all. I use ruby for small pet projects, I don't have too much experience, and today I started to play with Solidus. My problem is that I created a project using ESbuild:
rails _7.1.4_ new myapp -T -d postgresql -j esbuild --css tailwind
and looks like the starter frontend project is using Sprockets, so when I try to run the tests or precompile the assets, it throws an error related to missing files. `CssSyntaxError: tailwindcss: .../app/assets/stylesheets/application.tailwind.css11: The
bg-sand
class does not exist` So could you please guide me to solve this problem, or should I use default Rails configurations in order to have a better experience with Solidus?
m
@Luis M You can easily use esbuild with solidus starter frontend no issues there.
l
@Muhammad Usama Yousaf Thanks for your answer, how can I achieve that? At this moment is not possible to me. As I said, I created a brand new project with the configs I mentioned, and then installed Solidus using
bin/rails generate solidus:install
Then I tried to run the tests
bin/rails spec
And precompile the assets
bin/rails assets:precompile
And both tasks are aborted with this error message at the end
Copy code
bin/rails aborted!
cssbundling-rails: Command build failed, ensure `yarn build:css` runs without errors

Tasks: TOP => assets:precompile => css:build
m
@Luis M try running yarn install in your directory