You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The build emits: `Nested CSS was detected, but CSS nesting has not been configured correctly. Please enable a CSS nesting plugin *before* Tailwind in your configuration.`
155
+
Multiple remaining build warnings were identified and resolved:
156
156
157
-
This occurs because `index.css` uses `@layer base { ... }` with nested CSS rules, which requires a PostCSS nesting plugin (`postcss-nesting`) registered *before* the `tailwindcss` plugin. Without it, nested rules may not compile correctly in all environments.
157
+
1.**CSS nesting warning** — The build emitted: `Nested CSS was detected, but CSS nesting has not been configured correctly.` Root cause was `.banner { hr { ... } }` in `src/pages/pages.css` — invalid CSS nesting without `&` selector. Fixed by un-nesting the rule into flat CSS (`.banner hr { ... }`). Also installed `postcss-nesting` plugin and registered it before `tailwindcss` in PostCSS config as belt-and-suspenders.
158
+
159
+
2.**`TailwindTable.js` unused variables** — `let d = link[0].codeWarsLink`, `let i = data.id`, and `let e = [c, i].join("")` were assigned but never referenced in rendering. Variable `c` (leetCodeLink) is used; the others were dead code likely left from debugging.
160
+
161
+
3.**`DSA.jsx` missing map return** — `cards.map((index) => { <Grid .../> })` used a block body `{}` with no `return` statement, so the mapped JSX was silently discarded. Fixed by adding explicit `return`.
162
+
163
+
4.**`DevelopersLibrary.jsx` unused state setter** — `const [showFELinks, setShowFELinks] = useState(false)` — `setShowFELinks` was never called. `showFELinks` is still used in the JSX; removed the unused setter from the destructuring.
158
164
159
165
### Files Changed
160
166
161
167
-**`postcss.config.js`** — Added `postcss-nesting` plugin before `tailwindcss`
162
168
-**`package.json`** — Added `postcss-nesting` as a dev dependency
169
+
-**`src/pages/pages.css`** — Un-nested `.banner hr {}` from inside `.banner {}` to flat CSS
0 commit comments