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
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined #7085
Comments
did you manage to fix this? I am running into this issue as well |
No I didn't, I don't use it with |
This comment has been minimized.
This comment has been minimized.
Same, getting the issue when trying to run even the simplest script with TS:
Tried with multiple node versions to no avail. Thank you for any help! |
I was getting this issue because it couldn't locate chromium. I originally had assumed it was expecting a URL when rendering a page from HTML. |
Also having this issue, any news ? |
Bumping this thread as I am having the exact same issue with no luck. Running the file directly with ts-node works, but running it within the entire application bundled by webpack fails. |
This patch fixes __dirname pointing to / in some envrioments by trying process.cwd() if __dirname returne undefined. Issues: puppeteer#7085 puppeteer#7932
This patch fixes __dirname pointing to / in some envrioments by trying process.cwd() if __dirname returne undefined. Issues: puppeteer#7085 puppeteer#7932
Tell us about your environment:
What steps will reproduce the problem?
Please include code that reproduces the issue.
This is related to tsconfig or webpack, cos it works without ts.
The way I use puppeteer
What is the expected result?
page loaded
What happens instead?
in electron
in console
The text was updated successfully, but these errors were encountered: