andywer / andywer/postcss-debug

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

Abierto
#24 1 comentario 0 reacciones 0 asignados Ver en GitHub
bug question
Lenguaje dominante
JavaScript
Estrellas
94
Forks
7
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.