You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using ncc with puppeteer@13.2.2 does not work. The exception thrown is: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type number (49654) at validateString (internal/validators.js:124:11) at dirname (path.js:645:5)
The problem is the following line in the puppeteer code const puppeteerRootDirectory = sync( dirname(require.resolve('./initialize-node')) );
which is transformed into const puppeteerRootDirectory = (0, pkg_dir_1.sync)((0, path_1.dirname)(/*require.resolve*/(49654)));
I think require.resolve should not be replaced with number, but a string here?
The text was updated successfully, but these errors were encountered:
Using ncc with puppeteer@13.2.2 does not work. The exception thrown is:
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type number (49654) at validateString (internal/validators.js:124:11) at dirname (path.js:645:5)
puppeteer@13.2.1 worked, the PR that broke it is puppeteer/puppeteer#8003
The problem is the following line in the puppeteer code
const puppeteerRootDirectory = sync( dirname(require.resolve('./initialize-node')) );
which is transformed into
const puppeteerRootDirectory = (0, pkg_dir_1.sync)((0, path_1.dirname)(/*require.resolve*/(49654)));
I think require.resolve should not be replaced with number, but a string here?
The text was updated successfully, but these errors were encountered: