andywer / andywer/postcss-debug

atRule.raw.before is not a function - Tailwind CSS and PostCSS Debug

Offen
#24 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug question
Vorherrschende Sprache
JavaScript
Sterne
94
Forks
7
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Recently ran into this issue with the latest postcss, tailwinds css, and webpack.
```
TypeError: atRule.raw.before is not a function
at /home/george/Work/georanma-blog/assets/index.css:34:1
at /home/george/Work/georanma-blog/node_modules/tailwindcss/lib/lib/substituteTailwindAtRules.js:69:20
at /home/george/Work/georanma-blog/node_modules/postcss-debug/node_modules/postcss/lib/container.js:310:16
at /home/george/Work/georanma-blog/node_modules/postcss-debug/node_modules/postcss/lib/container.js:135:18
at Root.each (/home/george/Work/georanma-blog/node_modules/postcss-debug/node_modules/postcss/lib/container.js:101:16)
at Root.walk (/home/george/Work/georanma-blog/node_modules/postcss-debug/node_modules/postcss/lib/container.js:131:17)
at Root.walkAtRules (/home/george/Work/georanma-blog/node_modules/postcss-debug/node_modules/postcss/lib/container.js:308:17)
at /home/george/Work/georanma-blog/node_modules/tailwindcss/lib/lib/substituteTailwindAtRules.js:51:9
at LazyResult.run (/home/george/Work/georanma-blog/node_modules/postcss/lib/lazy-result.js:295:14)
at LazyResult.asyncTick (/home/george/Work/georanma-blog/node_modules/postcss/lib/lazy-result.js:208:26)
at /home/george/Work/georanma-blog/node_modules/postcss/lib/lazy-result.js:250:14
```
I was able to resolve the issue by forking the repo and updating the PostCSS dependancy. The library is using it's own version of PostCSS, `^5.0.19`, which installs `5.2.18` as is.

@andywer Im guessing this is mostly abandoned? I was trying to debug my tailwind set up with regards to PostCSS Font Magician, and local fonts, but loading up all that CSS in the browser for a few steps seems to drag Firefox to a halt, so Id need to look for a different way to debug anyways.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.