Troubleshooting
Installation Issues
Section titled “Installation Issues”Puppeteer Install Fails (Local)
Section titled “Puppeteer Install Fails (Local)”Error: Error: Cannot find module 'puppeteer' or installation hangs
Cause: Missing system dependencies or network issues
Solution:
# Install Chrome dependencies (Linux/WSL)sudo apt-get updatesudo apt-get install -y \ libx11-6 libxcomposite1 libxcursor1 libxdamage1 libxext6 \ libxfixes3 libxi6 libxtst6 libnss3 libglib2.0-0 libgtk-3-0t64 \ libasound2t64 libxrandr2 libpangocairo-1.0-0 libatk1.0-0 \ libatk-bridge2.0-0 libcups2 libdbus-1-3 libdrm2 libgbm1 \ libgdk-pixbuf2.0-0Bun Not Found (Local)
Section titled “Bun Not Found (Local)”Error: bash: bun: command not found
Solution:
# Install Buncurl -fsSL https://bun.sh/install | bash
# Or with npmnpm install -g bunVerify installation:
bun --versionBuild Command Issues (Local)
Section titled “Build Command Issues (Local)”Chrome Not Found (PDF Generation)
Section titled “Chrome Not Found (PDF Generation)”Error: Failed to launch the browser process or Chrome not found
Cause: Puppeteer can’t find Chrome/Chromium
Solution:
- Install Chrome dependencies (see Puppeteer section above)
- Set Puppeteer skip download in
.env:
PUPPETEER_SKIP_DOWNLOAD=true- Ensure system Chrome/Chromium is installed:
# Ubuntu/Debiansudo apt-get install chromium-browser
# macOSbrew install --cask google-chromeDEVSYNC.json Validation Errors
Section titled “DEVSYNC.json Validation Errors”Error: Invalid DEVSYNC.json structure or Missing required profile field
Cause: Schema validation failed
Solution:
-
Check that all required fields are present:
defaultLangsitenameimggithubUserName
-
Verify JSON syntax (no trailing commas, proper quotes)
-
Check field types match expected values
Example invalid vs valid:
// ❌ Invalid - missing quotes{ name: John Doe, // Should be "name": "John Doe" "site": https://example.com // Should be "https://example.com"}
// ✅ Valid{ "name": "John Doe", "site": "https://example.com"}PNPM create-template does not work
Section titled “PNPM create-template does not work”pnpm has strict security rules for script execution that might prevent create-template from working out of the box. I recommend using bunx instead. Since bunx only uses built-in Bun features to copy the @core folder, there are no security concerns.
Git Issues
Section titled “Git Issues”Permission Denied When Pushing
Section titled “Permission Denied When Pushing”Error: remote: Permission denied or fatal: could not read Username
Cause: Missing or incorrect GitHub credentials
Solution:
For GitHub Actions:
permissions: contents: writeFor local Git:
# Check remote URLgit remote -v
# Re-authenticategit credential-cache exitgit pushTemplate Issues
Section titled “Template Issues”Template Not Found
Section titled “Template Not Found”Error: Template DEVSYNC.json not found or Failed to clone repository
Cause: Invalid template URL or repository doesn’t exist
Solution:
- Verify template URL is correct:
# Should be: https://github.com/[owner]/[repo]bunx @jannael/devsync init --template @jannael/my-template-
Check repository exists and is public
-
Use default template if unsure:
bunx @jannael/devsync initPDF Generation Issues
Section titled “PDF Generation Issues”PDF Not Generated
Section titled “PDF Not Generated”Error: PDF file missing from output
Cause: HTML to PDF conversion failed
Solution:
- Check that
package.jsonhas correct path:
{ "devsync": { "pathToCompiledCV": "./dist/[lang]/cv/index.html" }}-
Verify HTML file exists at that path
-
Check build command actually generates the HTML
PDF Quality Issues
Section titled “PDF Quality Issues”Problem: PDF looks cut off or misformatted
Solution:
- Ensure HTML has proper viewport meta tag
- Check CSS doesn’t have fixed widths that exceed page size
- Test PDF generation locally first
GitHub Actions Issues
Section titled “GitHub Actions Issues”Workflow Not Triggering
Section titled “Workflow Not Triggering”Problem: Push to DEVSYNC.json but workflow doesn’t run
Solution:
- Check Actions tab - workflow might be disabled
- Verify
DEVSYNC.jsonis in root (not subdirectory) - Check workflow file path:
.github/workflows/*.yml - Verify YAML syntax:
on: push: paths: - 'DEVSYNC.json' # Exact match requiredJob Fails on Ubuntu
Section titled “Job Fails on Ubuntu”Error: Various errors on ubuntu-latest runner
Solution:
Add all required dependencies:
- name: Install dependencies run: | sudo apt-get update sudo apt-get install -y libx11-6 libnss3 libgtk-3-0t64 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxtst6 libxrandr2 libpangocairo-1.0-0 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdbus-1-3 libdrm2 libgbm1 libgdk-pixbuf2.0-0 libasound2t64Performance Issues
Section titled “Performance Issues”Slow Build Times
Section titled “Slow Build Times”Problem: Build takes >5 minutes
Solution:
- Cache dependencies:
- name: Cache Bun dependencies uses: actions/cache@v4 with: path: ~/.bun/install/cache key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}-
Use specific Bun version instead of
latest -
Reduce image sizes in
DEVSYNC.json
Common Error Messages
Section titled “Common Error Messages”| Error | Cause | Solution |
|---|---|---|
ENOENT: no such file or directory | File path doesn’t exist | Check paths in config |
EACCES: permission denied | File permissions issue | Check file permissions |
ETIMEDOUT | Network timeout | Check network, retry |
Invalid URL | Malformed URL in config | Fix URL format |
ZodError | Validation failed | Check field types/values |
Getting Help
Section titled “Getting Help”If your issue isn’t listed here:
- Check existing GitHub Issues
- Review Configuration Reference
- Check GitHub Actions Guide
- Create a new issue with:
- Error message
- Your
DEVSYNC.json(remove sensitive data) - Steps to reproduce