Puppeteer: Not in WSL or unsupported version of WSL.
Windows-system-browser detection cannot obtain supported WSL information.
Windows-system-browser detection cannot obtain supported WSL information.
Error message
Not in WSL or unsupported version of WSL.
How this error happens
Windows-Chrome discovery from Linux depends on supported WSL tooling. A non-WSL container or environment without working WSL information cannot use that lookup.
The snippets use the imported puppeteer instance in the Windows or WSL environment described above.
await puppeteer.launch({
channel: "chrome",
});
How to fix
Use the browser installed for the actual runtime environment instead of asking for cross-environment system Chrome discovery.
const browser = await puppeteer.launch({
browser: "chrome",
});
Things to keep in mind
Install the package-managed browser in the same environment first. If using a Windows system browser is intentional, restore the real Windows service environment or supported WSL setup; do not invent filesystem prefixes.