-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete existing CSS processors when installing gem into existing project #18
Comments
According to the discussion in another thread, Sprockets will have a simplified version. |
Yeah, I'd prefer to pursue the simpler sprockets. If someone is using css/js bundling, they need very little from sprockets. We should find a way to give that very little. |
Actually, regardless of the simpler sprockets (which is now called Propshaft), we still need to fix this issue. Did you remove |
I am currently also experiencing this problem. I am switching to the new
I tried the first suggestion ( |
I spent an hour working on this issue, I found a work around that works for me. The the problem happens because of the @tailwindcss/typography` plugin. Compilation trips over this line. This was recently added, so when I rolled back to version diff --git a/StekkerWeb/package.json b/StekkerWeb/package.json
index a7845c5f..3155373d 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,7 @@
"@rails/webpacker": "^5.4.3",
"@sinonjs/fake-timers": "^7.1.2",
"@tailwindcss/forms": "^0.3.3",
- "@tailwindcss/typography": "^0.4.1",
+ "@tailwindcss/typography": "0.4.0",
"autoprefixer": "^10.3.6",
"chart.js": "^3.5.1",
"chartkick": "^4.0.5",
diff --git a/StekkerWeb/yarn.lock b/StekkerWeb/yarn.lock
index 74352df1..c7c81313 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1063,10 +1063,10 @@
dependencies:
mini-svg-data-uri "^1.2.3"
-"@tailwindcss/typography@^0.4.1":
- version "0.4.1"
- resolved "https://registry.yarnpkg.com/@tailwindcss/typography/-/typography-0.4.1.tgz#51ddbceea6a0ee9902c649dbe58871c81a831212"
- integrity sha512-ovPPLUhs7zAIJfr0y1dbGlyCuPhpuv/jpBoFgqAc658DWGGrOBWBMpAWLw2KlzbNeVk4YBJMzue1ekvIbdw6XA==
+"@tailwindcss/[email protected]":
+ version "0.4.0"
+ resolved "https://registry.yarnpkg.com/@tailwindcss/typography/-/typography-0.4.0.tgz#b80974ad6af93df7b06e1981cb4d79698b6ad5c7"
+ integrity sha512-3BfOYT5MYNEq81Ism3L2qu/HRP2Q5vWqZtZRQqQrthHuaTK9qpuPfbMT5WATjAM5J1OePKBaI5pLoX4S1JGNMQ==
dependencies:
lodash.castarray "^4.4.0"
lodash.isplainobject "^4.0.6"
For future reference; I also noticed that other repositories complain about this issue: tailwindlabs/tailwindcss-typography#137 (comment). |
I tried to replicate this on a new Rails 7 app with the |
Made a note of the issue and the resolution here: 4ed1276 |
After following the install instructions and having super easy setup in development, I tried running
RAILS_ENV=production bundle exec rake assets:precompile
, which failed with the following output:A little Googling led me to this stackoverflow question. It wasn't really the right solution, but did point me in the right direction. Ultimately I ran:
and everything was peachy.
Should this gem automatically remove any existing CSS processors/compressors during installation? Since the output of running the
tailwindcss
command produces a file that still runs through existing compressors, it's possible that users might run into the same issue I did.Thoughts?
The text was updated successfully, but these errors were encountered: