When reporting an issue with WebContainer, provide a minimal, reproducible example. To ensure a high-quality report, follow these steps:
- Verify locally: Confirm the project runs correctly on your local machine with a standard Node.js installation to rule out project-specific issues.
- Auto-execute erroneous commands: Use a
.stackblitzrc configuration file to ensure the command that triggers the error runs automatically when the StackBlitz project starts. - Isolate API calls: Instead of using a complex framework, try to create a simple Node.js script with minimal dependencies that triggers the specific faulty API call.
- Use DevTools for debugging: You can use the browser DevTools to inspect your code and dependencies, or add
debugger statements to your files to step through execution.