(Created on )

Puppeteer: Default user dir detection is not supported for {value} yet.

Default user-data-directory detection is requested for an unsupported browser kind.


Default user-data-directory detection is requested for an unsupported browser kind.

Error message

Default user dir detection is not supported for {value} yet.

{value} is replaced by the value shown in your error message.

How this error happens

The default profile-directory helper supports Chrome’s system profile conventions. It does not infer a Firefox profile directory.

import {
    Browser,
    BrowserPlatform,
    ChromeReleaseChannel,
    resolveDefaultUserDataDir,
} from "@puppeteer/browsers";

resolveDefaultUserDataDir(
    Browser.FIREFOX,
    BrowserPlatform.LINUX,
    ChromeReleaseChannel.STABLE
);

How to fix

Choose a dedicated automation profile explicitly instead of looking up a personal system profile.

import puppeteer from "puppeteer";

const browser = await puppeteer.launch({
    browser: "firefox",
    userDataDir: "/absolute/path/firefox-automation-profile",
});

Things to keep in mind

The directory must be writable and not shared with another running browser.

All Puppeteer errors

Keep Reading

Puppeteer Guides

All Guides →