Installation Issues
npm install fails with dependency errors
npm install fails with dependency errors
Problem: Dependency conflicts or version mismatches during installation.Solutions:
-
Ensure you’re using Node.js 18 or higher:
-
Clear npm cache and reinstall:
-
If using a different package manager, try npm specifically:
Port 5173 already in use
Port 5173 already in use
Problem: Vite dev server can’t start because port is in use.Solutions:
-
Kill the process using port 5173:
-
Or use a different port:
Dev Server Issues
Changes not appearing in browser
Changes not appearing in browser
Problem: You made changes but they don’t show up in the preview.Solutions:
-
Restart the dev server:
-
Hard refresh the browser:
- Mac: Cmd + Shift + R
- Windows/Linux: Ctrl + Shift + R
- Clear browser cache and reload
- Check the terminal for errors that might be blocking hot module reload
New components not showing up
New components not showing up
Problem: You created new components with a slash command but they don’t appear.Solutions:
-
Restart the dev server — This is the most common solution:
-
Check that files were created in the correct location:
-
Verify the component is exported in the index file:
Module not found errors
Module not found errors
Problem: Import errors in the console or terminal.Solutions:
- Check the import path is correct
- Ensure the file exists at the specified path
- Restart the dev server after creating new files
- Check for typos in file names or import statements
- Verify the file extension matches (.tsx vs .ts)
Design Issues
Dark mode not working properly
Dark mode not working properly
Problem: Components don’t look right in dark mode.Solutions:
-
Check for missing
dark:variants:- All background colors need
dark:variants - All text colors need
dark:variants - Border colors need
dark:variants
- All background colors need
-
Common pattern:
-
Test in both modes:
- Toggle dark mode in your system settings
- Or use browser DevTools to toggle
darkclass on<html>
Layout not responsive
Layout not responsive
Problem: Design breaks or looks wrong on mobile/tablet.Solutions:
-
Add responsive breakpoints:
-
Use responsive utilities:
sm:— 640px and upmd:— 768px and uplg:— 1024px and upxl:— 1280px and up
-
Test at different viewport sizes:
- Resize browser window
- Use browser DevTools device toolbar
- Test on actual mobile devices
Colors not matching design tokens
Colors not matching design tokens
Problem: Screen designs not using the colors from
/design-tokens.Solutions:-
Check design tokens are defined:
-
Regenerate the screen design:
- Use
/design-screenagain - Mention that colors should use the design tokens
- Use
-
Verify the correct palette:
- Primary, secondary, and neutral should match your chosen Tailwind colors
- Check that intensity values (400, 500, 600, etc.) are appropriate
Fonts not loading
Fonts not loading
Problem: Typography doesn’t match the fonts chosen in
/design-tokens.Solutions:-
Check typography.json:
-
Verify Google Fonts are loading:
- Check network tab in browser DevTools
- Look for Google Fonts requests
- Ensure font names match exactly
-
Check CSS custom properties:
- Open browser DevTools
- Inspect an element
- Verify
--font-headingand--font-bodyare set
Data & Type Issues
TypeScript errors in components
TypeScript errors in components
Problem: Type errors when using components.Solutions:
-
Check types file exists:
-
Verify types match data shape:
- Compare types.ts interfaces to data.json structure
- Ensure all required fields are present
- Check for typos in property names
-
Regenerate types:
This regenerates both data.json and types.ts
Sample data not matching UI needs
Sample data not matching UI needs
Problem: The generated sample data doesn’t fit your screen design.Solutions:
-
Update sample data:
Describe the specific data structure you need
-
Be specific about fields:
- List all fields required by your UI
- Specify data types and formats
- Mention any relationships or nested structures
-
Manually edit if needed:
Then restart dev server
Export Issues
Export fails or incomplete
Export fails or incomplete
Problem:
/export-product command fails or generates incomplete package.Solutions:-
Check all required files exist:
product/product-overview.mdproduct/product-roadmap.mdproduct/design-system/colors.jsonproduct/design-system/typography.jsonproduct/shell/spec.md- Each section’s spec.md, data.json, and types.ts
-
Verify component files:
- Check
src/shell/components/exists - Check each
src/sections/[section-name]/components/exists
- Check
-
Run export again:
- Check for error messages in the output
Missing sections in export
Missing sections in export
Problem: Some sections don’t appear in the export package.Solutions:
-
Verify section is in roadmap:
-
Check section has all required files:
product/sections/[section-name]/spec.mdproduct/sections/[section-name]/data.jsonproduct/sections/[section-name]/types.tssrc/sections/[section-name]/components/
-
Complete missing steps:
- Run
/shape-sectionif spec is missing - Run
/design-screenif components are missing
- Run
Implementation Issues
AI agent not understanding the design
AI agent not understanding the design
Problem: Your coding agent implements something different from the design.Solutions:
-
Use the pre-written prompts:
- Don’t write prompts from scratch
- Use
prompts/section-prompt.mdorprompts/one-shot-prompt.md
-
Always include context:
- Reference
product-overview.md - Point to the specific instruction file
- Mention the section’s
tests.md
- Reference
-
Ask the agent to review first:
- “Before implementing, review all provided files”
- “Describe what you understand about the design”
- “Ask clarifying questions before starting”
-
Be specific with corrections:
- Point to the exact specification that was missed
- Reference the component design
- Show the difference between expected and actual
Components not working in target codebase
Components not working in target codebase
Problem: Exported components have errors when integrated.Solutions:
-
Check Tailwind CSS v4 is installed:
-
Verify Tailwind v4 configuration:
- Add to vite.config.ts plugins:
- Import in CSS:
- Add to vite.config.ts plugins:
-
Check for missing dependencies:
- React 18+
- TypeScript (if using .tsx files)
-
Verify props are passed correctly:
- Components expect data via props
- Check props match the TypeScript interfaces
Styling not applied in production
Styling not applied in production
Problem: Components look correct in dev but broken in production build.Solutions:
-
Verify Tailwind v4 build configuration:
- Ensure
@tailwindcss/viteplugin is in vite.config - Check that CSS is being processed correctly
- Ensure
-
Check content paths (not needed in v4 but verify just in case):
- Components should be in scanned directories
-
Test production build locally:
-
Check for purged classes:
- Dynamic class names might be removed
- Use complete class names, not string concatenation
File Structure Issues
Can't find product files
Can't find product files
Problem: Looking for product definition files and can’t locate them.Solutions:Product definition files are in
product/:product/product-overview.mdproduct/product-roadmap.mdproduct/data-shape/data-shape.mdproduct/design-system/colors.jsonproduct/design-system/typography.jsonproduct/shell/spec.mdproduct/sections/[section-name]/spec.mdproduct/sections/[section-name]/data.jsonproduct/sections/[section-name]/types.ts
src/:src/shell/components/src/sections/[section-name]/components/
product-plan/ (generated by /export-product)Confused about Design OS vs. product design files
Confused about Design OS vs. product design files
Problem: Not sure which files are for Design OS app vs. your product design.Solutions:Design OS application (the planning tool itself):
- Files in
src/(exceptsrc/shell/andsrc/sections/) - Uses stone/lime palette and DM Sans
- You rarely need to modify these
- Product definition files in
product/ - Screen design components in
src/sections/andsrc/shell/ - Export package in
product-plan/ - Uses your chosen design tokens
Performance Issues
Slow dev server or hot reload
Slow dev server or hot reload
Problem: Dev server is slow or hot module reload takes a long time.Solutions:
-
Restart the dev server:
-
Clear Vite cache:
-
Check for large files:
- Large images can slow things down
- Optimize images before adding
-
Check system resources:
- Close unnecessary applications
- Ensure sufficient RAM available
Getting Help
If you’re still experiencing issues:Community & Support:
- Visit the Design OS documentation
- Join Builder Methods Pro for direct support
- Check the GitHub repository for issues
- Design OS version
- Node.js version (
node --version) - Operating system
- Steps to reproduce the issue
- Error messages (full text)
- Screenshots if relevant