Appearance
Troubleshooting Guide
This guide covers common issues and solutions when working with LamaPress.
Table of Contents
- Development Issues
- Build Issues
- Component Issues
- ACF Issues
- JavaScript Issues
- Styling Issues
- Deployment Issues
Development Issues
Vite Server Not Starting
Symptoms:
npm run devfails- Port 5173 already in use
Solutions:
bash
# Kill process on port 5173
lsof -ti:5173 | xargs kill -9
# Or change port in vite.config.js
server: {
port: 5174,
}Assets Not Loading in Development
Symptoms:
- Styles not applying
- JavaScript not working
- 404 errors for assets
Solutions:
Check Vite server is running:
bashnpm run devCheck
hotfile exists:bashls -la hotAccess via Herd URL, not localhost:5173:
- ✅
http://your-site.test - ❌
http://localhost:5173
- ✅
Clear browser cache:
- Hard refresh: Cmd+Shift+R (Mac) or Ctrl+Shift+R (Windows)
Herd Site Not Loading
Symptoms:
- Site returns 404 or error
- Herd shows site as stopped
Solutions:
Restart site in Herd:
- Right-click site → Restart
Check PHP version:
bashherd phpCheck site configuration:
- Verify site path is correct
- Check file permissions
Build Issues
Build Fails
Symptoms:
npm run buildexits with error- Build process stops
Solutions:
Check Node.js version:
bashnode --version # Should be v24.x.xClear node_modules and reinstall:
bashrm -rf node_modules package-lock.json npm installCheck for syntax errors:
- Review error messages
- Check JavaScript/SCSS files
- Verify imports are correct
Check disk space:
bashdf -h
Assets Missing After Build
Symptoms:
dist/directory empty or incomplete- Manifest file missing
Solutions:
Verify build completed:
bashnpm run build # Check for errorsCheck dist/ directory:
bashls -la dist/Check file permissions:
bashchmod -R 755 dist/Rebuild:
bashrm -rf dist/ npm run build
Component Issues
Component Not Rendering
Symptoms:
- Component doesn't appear on page
- PHP errors in logs
Solutions:
Check component file exists:
bashls components/blocks/your-component/index.phpCheck function call:
php// ✅ Correct llBlock('your-component', ['fields' => $fields]); // ❌ Wrong llBlock('your_component', ['fields' => $fields]);Check for PHP errors:
- Enable
WP_DEBUGinwp-config.php - Check error logs
- Enable
Verify data is passed:
phpvar_dump($fields); // Debug output
Component JavaScript Not Loading
Symptoms:
- Component renders but JavaScript doesn't work
- No errors in console
Solutions:
Check
data-componentattribute:php<div data-component="blocks/your-component">Verify JavaScript file exists:
bashls components/blocks/your-component/index.jsCheck default export:
javascript// ✅ Correct export default class YourComponent { // ... }Check browser console:
- Look for import errors
- Check for JavaScript errors
Component Not Initializing
Symptoms:
- Component exists but
init()not called - No console logs from component
Solutions:
Check element exists when component loads:
javascriptconstructor(element) { if (!element) { console.error('Element not found'); return; } this.element = element this.init() }Check for JavaScript errors:
- Browser console
- Network tab for failed imports
Verify component is in DOM:
javascriptconsole.log('Element:', this.element);
ACF Issues
Fields Not Showing
Symptoms:
- ACF fields don't appear in admin
- Field groups missing
Solutions:
Check ACF Pro is installed:
- Verify plugin is active
- Check license is valid
Check field group key is unique:
php$key = 'unique_key_here'; // Must be uniqueClear ACF cache:
- Deactivate and reactivate ACF
- Or clear WordPress cache
Check template is correct:
phpllSection('section_name', 'unique_key');
Field Values Not Saving
Symptoms:
- Fields appear but values don't save
- Data lost on save
Solutions:
Check field keys:
php'key' => $name . '_01', // Must be uniqueCheck user permissions:
- User must have edit permissions
- Check user role capabilities
Check for JavaScript errors:
- Browser console
- May prevent form submission
Check database:
- Verify WordPress can write to database
- Check table permissions
Flexible Content Not Working
Symptoms:
- Flexible section doesn't show sections
- Sections not available
Solutions:
Check section acf.php files exist:
bashls components/sections/*/acf.phpVerify section definitions:
php// In section acf.php $key = 'section_name'; $name = 'section_name'; $title = 'Section Title';Check template call:
phpllSection('flexible', 'flexible_key');
JavaScript Issues
Module Not Found
Symptoms:
- Console error: "Failed to fetch dynamically imported module"
- Component doesn't load
Solutions:
Check file path:
javascript// ✅ Correct data-component="blocks/accordion" // ❌ Wrong data-component="blocks/accordion/index"Verify file exists:
bashls components/blocks/accordion/index.jsCheck default export:
javascriptexport default class Accordion { // ... }Clear browser cache:
- Hard refresh
- Clear cache and reload
GSAP Animation Not Working
Symptoms:
- Animations don't play
- Timeline errors
Solutions:
Check GSAP is imported:
javascriptimport { gsap } from 'gsap/all'Check ScrollTrigger is registered:
javascriptimport { ScrollTrigger } from 'gsap/ScrollTrigger' gsap.registerPlugin(ScrollTrigger)Verify element exists:
javascriptif (!this.element) { console.error('Element not found'); return; }Check timeline cleanup:
javascriptdestroy = () => { killTimeline(this.timeline); }
Styling Issues
Styles Not Applying
Symptoms:
- Tailwind classes not working
- Custom styles missing
Solutions:
Check build completed:
bashnpm run buildVerify CSS is loading:
- Check Network tab
- Verify CSS file exists in
dist/
Check class names:
php<!-- ✅ Correct --> <div class="ll-container"> <!-- ❌ Wrong --> <div class="container">Clear browser cache:
- Hard refresh
- Clear cache
Tailwind Classes Not Generated
Symptoms:
- Custom Tailwind classes don't work
- Classes not in compiled CSS
Solutions:
Check Tailwind config:
javascriptcontent: [ './components/**/*.php', './src/**/*.js', ]Rebuild:
bashnpm run buildCheck safelist:
javascriptsafelist: [ 'll-theme-dark', 'll-heading-2xl', ]
Deployment Issues
Assets Not Loading on Staging/Production
Symptoms:
- Styles missing
- JavaScript not working
- 404 errors
Solutions:
Verify build completed:
bashnpm run buildCheck dist/ is committed:
bashgit status git add dist/ git commit -m "Build assets"Verify file permissions:
bashchmod -R 755 dist/Check manifest file:
bashls dist/.vite/manifest.json
Build Fails on Server
Symptoms:
- Deployment fails
- Build errors
Solutions:
Check Node.js version:
bashnode --version # Should match local versionCheck npm version:
bashnpm --versionUse npm ci instead of npm install:
bashnpm ci # Clean install from package-lock.jsonCheck server resources:
- Disk space
- Memory limits
- Timeout settings
Getting Help
If issues persist:
Check error logs:
- WordPress debug log
- Server error logs
- Browser console
Review documentation:
- Relevant guide sections
- Code examples
- Best practices
Ask the team:
- Share error messages
- Include relevant code
- Describe steps to reproduce
Related Documentation
- Development Environment - Setup issues
- Build Process - Build issues
- Component System - Component issues
- JavaScript Architecture - JS issues
Next Steps:
- Review relevant documentation sections
- Check error logs for specific errors
- Ask the team if issues persist