-
Notifications
You must be signed in to change notification settings - Fork 5
Troubleshooting
Common issues and their solutions for DesignSetGo WordPress plugin development.
Symptoms:
-
npm run buildstarts but never completes - Webpack process appears stuck (no output or progress)
- High CPU usage from webpack/node process
Root Cause:
Corrupted webpack cache in node_modules/.cache or stale wp-env WordPress files.
Solution:
# Quick fix: Clean cache and rebuild
npm run build:clean
# Or manually:
npm run clean:cache
npm run build
# Nuclear option: Clean everything
npm run clean:all
npm install
npm run buildPrevention:
- The
postinstallscript now auto-clears cache afternpm install - CI automatically clears cache before builds
- Use
npm run build:cleanif you suspect cache issues
Why it happens:
- Interrupted builds can corrupt webpack cache
- 117 entry points (large codebase) stresses caching
- Node v24 (very new) may have edge cases
Expected Performance:
- Normal build: 3-5 seconds
- First build after cache clear: 8-12 seconds
- With 117 entry points, anything >15 seconds is abnormal
Solutions:
# Increase Node memory (if you have RAM)
NODE_OPTIONS="--max-old-space-size=8192" npm run build
# Use webpack bundle analyzer to find bloat
npm run build:analyze
# Disable code splitting temporarily (debug)
# Edit webpack.config.js: optimization.splitChunks = falseSymptoms:
-
composer run-script analysehangs - PHP process uses >2GB RAM
Solution:
# Run with lower level (faster, less strict)
vendor/bin/phpstan analyse --level=3
# Increase memory limit
php -d memory_limit=4G vendor/bin/phpstan analyse
# Skip problematic paths
# Edit phpstan.neon and add to excludePathsSymptoms:
-
npm run test:unitnever completes - Tests timeout after 60 seconds
Solutions:
# Run with --no-cache
npm run test:unit -- --no-cache
# Run single test file
npm run test:unit -- path/to/test.test.js
# Clear Jest cache
npx jest --clearCacheSymptoms:
-
npm run wp-env:startfails - Docker containers not starting
- Port conflicts (8888 already in use)
Solutions:
# Clean and restart
npm run wp-env:clean
npm run wp-env:start
# Check Docker
docker ps # See running containers
docker system prune # Clean up unused containers
# Check port 8888
lsof -i :8888 # See what's using port 8888Symptoms:
- Plugin appears in
wp plugin listbut not in admin - Activation fails silently
Solutions:
# Rebuild and restart wp-env
npm run build
npm run wp-env:stop
npm run wp-env:start
# Check for PHP errors
npx wp-env run cli wp plugin activate designsetgo --debug
# Check wp-env logs
npx wp-env logsSolutions:
# Clear npm cache
npm cache clean --force
rm -rf node_modules package-lock.json
npm install
# Use legacy peer deps (if peer dependency conflicts)
npm install --legacy-peer-depsSolutions:
# Clear composer cache
composer clear-cache
# Update composer
composer self-update
# Install with verbose output
composer install -vvvSymptoms:
- Commit blocked by linting errors
- Hook hangs or times out
Solutions:
# Pre-commit hooks are non-blocking by design
# They show warnings but allow commits
# Skip hooks if needed (not recommended)
git commit --no-verify -m "message"
# Fix linting issues
npm run lint:js -- --fix
npm run lint:css -- --fix
composer run-script lint:fixSymptoms:
- Block insertion lags
- Typing has delay
- Browser DevTools shows warnings
Debug:
# Build with bundle analyzer
npm run build:analyze
# Opens browser with bundle visualization
# Check for large assets
ls -lh build/ | sort -k5 -h
# Run Lighthouse audit
npx lighthouse http://localhost:8888 --viewCommon causes:
-
Missing environment: CI uses PHP 8.0, 8.1, 8.2 matrix
# Test locally with specific PHP version composer install --ignore-platform-reqs -
Cache issues: CI clears cache, you might have stale cache
npm run clean:all npm install npm run build
-
WordPress version mismatch: CI tests WP 6.4-latest
# Test locally with specific WP version # Edit .wp-env.json: "core": "WordPress/WordPress#6.4" npm run wp-env:clean npm run wp-env:start
Likely cause: Different PHP versions
# Check your local PHP version
php --version
# CI uses PHP 8.0, 8.1, 8.2
# Test with Docker to match CI environment
docker run -v $(pwd):/app -w /app php:8.2-cli composer run-script analyse# Check versions
node --version # Should be 18.x, 20.x, or 22.x
npm --version # Should be 8.x or higher
php --version # Should be 8.0+
composer --version
# Check disk space (large caches can fill disk)
du -sh node_modules/.cache
du -sh .wp-env
# Check for hanging processes
ps aux | grep -i "webpack\|wp-scripts\|phpstan"
# Kill hanging processes
pkill -9 -f "webpack|wp-scripts|phpstan"
# Check git status
git status
git log --oneline -5If you're still stuck:
- Search Issues: Check GitHub Issues
-
Check Logs:
- Build: Look for errors in
npm run buildoutput - PHP: Check
npx wp-env logs - Browser: Open DevTools console (F12)
- Build: Look for errors in
-
Clean Slate:
npm run clean:all rm -rf vendor npm install composer install npm run build
✅ Daily:
- Pull latest changes before starting work
- Run
npm run buildto verify setup
✅ Weekly:
- Run
npm run clean:cacheto prevent cache buildup - Update dependencies:
npm outdatedandcomposer outdated
✅ Before PR:
- Run
npm run build:cleanto ensure clean build - Test in fresh wp-env:
npm run wp-env:clean && npm run wp-env:start - Run all linters:
npm run lint:js && npm run lint:css && composer run-script lint
Last Updated: 2025-11-23 Plugin Version: 1.2.0 Node Version: 18.x-24.x PHP Version: 7.4-8.2 WordPress Version: 6.0+
Auto-generated from
docs/TROUBLESHOOTING.md. To update, edit the source file and changes will sync on next push to main.
- Accordion
- Blobs
- Breadcrumbs
- Card
- Comparison Table
- Countdown Timer
- Counter Group
- Divider
- Flip Card
- Form Builder
- Grid
- Icon
- Icon Button
- Icon List
- Image Accordion
- Map
- Modal
- Modal Api Reference
- Modal Auto Triggers
- Modal Fse Compatibility
- Modal Gallery Navigation
- Modal Next Phase
- Modal Performance Fixes
- Modal Security Audit
- Modal Security Fixes Summary
- Modal Trigger
- Pill
- Progress Bar
- Reveal
- Row
- Scroll Accordion
- Scroll Gallery
- Section
- Slider
- Table Of Contents
- Tabs
- Timeline
- Animation
- Background Video
- Block Animations
- Clickable Group
- Custom Css
- Expanding Background
- Grid Mobile Order
- Grid Span
- Max Width
- Responsive Visibility
- Reveal Control
- Scroll Parallax
- Sticky Header
- Text Alignment Inheritance
- Text Reveal
- Ai Assisted Development
- Best Practices Summary
- Block Controls Organization
- Block Development Best Practices Comprehensive
- Block Exclusion Guide
- Control Reorganization
- Design System
- Wordpress Block Editor Best Practices
- Color Controls Pattern
- Custom Css Filters
- Performance Css Strategy
- Width Css Strategy Implementation
- Width Layout Patterns
- Antigravity Audit
- Card Block Audit
- Claude Audit
- Comprehensive Audit
- Cursor Audit
- Scroll Accordion Stacking Notes
- Security Review 1.2.1
- 2026 02 11 Icon Search Aliases Design
- 2026 02 14 Overlay Header Design
- 2026 02 15 Deactivation Block Migrator Design