New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: '_projectRoot is undefined. Unable to create a BrowserFetcher.' ( v18.0.4 ) #8999
Comments
See #8919 |
I am running into this issue. I am using puppeteer-core only to use its One way to fix this could be if |
Could you try puppeteer instead of puppeteer-core? [EDIT]: Scratch that. I assume you are looking to just have the launcher as a separate API. There are some discussions regarding this. If all goes well, it should be come a separate API this quarter. We will see. |
We likely can switch to puppeteer, with a bit of additional configuration. It still leaves puppeteer-core with a broken |
thanks @jrandolf //fix '_projectRoot is undefined. Unable to create a BrowserFetcher.'
const { BrowserFetcher } = require('puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.js');
const createBrowserFetcher = (options) => {
return new BrowserFetcher('', options);
};
// instead of puppeteer.createBrowserFetcher() It's just that BrowserFetcher is not a public API, we still hope to fix the public API createBrowserFetcher, thanks again. |
Just remove node_modules/puppeteer-core/ if you are using puppeteer-extra |
Bug description
Steps to reproduce the problem:
throw a error:
node_modules\puppeteer-core\lib\cjs\puppeteer\node\Puppeteer.js:206
throw new Error('_projectRoot is undefined. Unable to create a BrowserFetcher.');
^
Error: _projectRoot is undefined. Unable to create a BrowserFetcher.
API createBrowserFetcher broken, it's works on previous version
Puppeteer version
v18.0.4
Node.js version
v16.17.0
npm version
8.18.0
What operating system are you seeing the problem on?
Windows
Relevant log output
No response
The text was updated successfully, but these errors were encountered: