Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 1.06 KB

File metadata and controls

16 lines (11 loc) · 1.06 KB

Lessons Learned

What I Learned

Mistakes to Avoid

  • tsc + jest do NOT parse globals.css. A CSS error there - e.g. a */ inside a comment (writing zinc-*/blue-600 prematurely closes the /* */ block) - passes typecheck AND the whole Jest suite, then blows up only at next dev/next build (Turbopack/lightningcss). After editing globals.css, verify it compiles. next build is doppel-blocked, so quickest check from frontend/: node -e 'const fs=require("fs"),pc=require("postcss"),tw=require("@tailwindcss/postcss");pc([tw()]).process(fs.readFileSync("src/app/globals.css","utf8"),{from:"src/app/globals.css"}).then(r=>console.log("ok",r.css.length)).catch(e=>{console.error(e.message);process.exit(1)})' (#73 Stage B)

Patterns That Work