-
Notifications
You must be signed in to change notification settings - Fork 2
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
require(...) is not a function #3
Comments
Hello, thanks for using my plugin.
Try this: `puppeteer.use(require('puppeteer-extra-plugin-
timezone').default())`
And please let me know if it worked :)
Le lun. 19 juil. 2021 à 18:30, adamduffield ***@***.***> a
écrit :
… When I use try to use this plugin with
"puppeteer.use(require('puppeteer-extra-plugin-timezone')())"
I get:
[image: image]
<https://user-images.githubusercontent.com/37820062/126193014-bdebc78e-9bfc-411d-91c8-ba9df42444b5.png>
Any suggestions as to what I should look at to fix this?
If i console.log the plugin, i get:
[image: image]
<https://user-images.githubusercontent.com/37820062/126194500-dfd97dc9-ca44-4157-bf3e-f84342635aec.png>
*System:*
OS: macOS 11.4
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Binaries:
Node: 14.16.1 - /usr/local/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.14.12 - /usr/local/bin/npm
npmPackages:
jest: ^27.0.6 => 27.0.6
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADKG2SXZWH6YGVOZEDHZUHTTYRHKTANCNFSM5AUBQO4A>
.
|
Yes it works now. Thanks! Is there any way to get it working when using password authentication for the proxies? If not, no worries, I will just use IP auth :) |
Glad that it works!
I did not configure a way to enable password authentication so you'll have
to use IP. However, you could edit the code and add an option for this :)
Le lun. 19 juil. 2021 à 21:00, adamduffield ***@***.***> a
écrit :
… Yes it works now. Thanks!
Is there any way to get it working when using password authentication for
the proxies? If not, no worries, I will just use IP auth :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADKG2SUZNDIPSX2DHF62ZADTYRY3TANCNFSM5AUBQO4A>
.
|
i have a same problems. i use proxy for puppeteer config when i use it will some err this is my launch config
is there use proxy config to make this error? My agent is a locally directly accessible similar 127.0.0.1 no verification |
@EasyChris thanks for trying out my plugin Try this: puppeteer.use(require("puppeteer-extra-plugin-timezone").default()) |
I'm going to close this issue in favour of #5 @adamduffield Regarding the authentication issue, I've noted some implementation ideas in #4 I'm too busy to contribute right now, but any help is welcome :) |
When I use try to use this plugin with "puppeteer.use(require('puppeteer-extra-plugin-timezone')())"
I get:
Any suggestions as to what I should look at to fix this?
If i console.log the plugin, i get:
System:
OS: macOS 11.4
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Binaries:
Node: 14.16.1 - /usr/local/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.14.12 - /usr/local/bin/npm
npmPackages:
jest: ^27.0.6 => 27.0.6
The text was updated successfully, but these errors were encountered: