Cuadrix / puppeteer-page-proxy

Additional module to use with 'puppeteer' for setting proxies per page basis.
426 stars 100 forks source link

SyntaxError: Unexpected token = #6

Closed MAkcanca closed 4 years ago

MAkcanca commented 4 years ago
static Target = {
                  ^
SyntaxError: Unexpected token =
    at Module._compile (internal/modules/cjs/loader.js:721:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:690:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (.\node_modules\puppeteer-page-proxy\src\lib\cookies.js:3:27)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)

I'm receiving this error just by importing the library on a simple node.js file. Node version v10.16.0

Cuadrix commented 4 years ago

Fixed in v1.2.3