contentlayerdev / contentlayerdev/next-contentlayer-example
Incorrect Tailwind config
- Lenguaje dominante
- TypeScript
- Estrellas
- 104
- Forks
- 37
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I won't fork for such a small change.
Your `tailwind.config.js` is pointing to the `pages` folder, but you are implementing next's experimental `app` folder so no tailwind styling is being generated.
```js
(...)
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
(...)
```
Should be
```js
(...)
content: [
"./app/**/*.{js,ts,jsx,tsx}",
(...)
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Open tailwind.config.js and inspect the content paths used for the Next app. Update the configuration to cover the app folder as described in the issue, then verify that Tailwind styling is generated for files under app.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- next.js, tailwindcss
- Área
- frontend
- Tipo de issue
- Error
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Estado de actividad
- Estancado
- Claridad
- Bien especificado
- Aptitud para principiantes
- 35/100