Debugging
Enable debug mode to see detailed logs:Chrome DevTools
- Open Chrome DevTools for your extension
- Check the Network tab for requests to
prod.alb.us.api.composite.com - Use the Console to see debug logs
- Check Application > Storage for persisted data
Common Issues
Content Security Policy (CSP) Errors
Content Security Policy (CSP) Errors
If you encounter CSP errors, ensure your manifest includes the correct host permissions:For inline scripts, you may need to adjust your CSP:
Message Passing Failures
Message Passing Failures
The SDK handles message passing automatically, but ensure:
- Background script is loaded before content scripts
- Same API key is used across all contexts
- Transport is set to
'chrome-extension'in all contexts
Session Recording Not Working
Session Recording Not Working
Session recording requires:
- Content script injected with
<all_urls>or specific matches sessionRecording: truein configuration- Sufficient permissions in manifest
ChunkLoadError in Content Scripts
ChunkLoadError in Content Scripts
If you see errors like This increases the bundle size (~230KB vs ~25KB initial) but eliminates dynamic imports entirely.
ChunkLoadError: Loading chunk X failed or chunks loading from the wrong domain (e.g., https://example.com/123.js instead of your extension), this is caused by bundlers using dynamic imports for code splitting.Why this happens: Content scripts run in an isolated world separate from the page’s JavaScript. When bundlers like Webpack use import() for lazy loading, they inject <script> tags that execute in the page’s main world, not your content script’s isolated context.Solution: Import from the /content-script entry point which pre-bundles all extensions:Session Recordings Not Appearing in Dashboard
Session Recordings Not Appearing in Dashboard
Check:
- API key is correct
- Network requests are successful (check DevTools)
- Debug mode is enabled to see logs
- Session recording is enabled in config