contentlayerdev / contentlayerdev/next-contentlayer-example
Incorrect Tailwind config
- Lingua principale
- TypeScript
- Stelle
- 104
- Fork
- 37
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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}",
(...)
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- next.js, tailwindcss
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 35/100