Nuxt.jsからPuppeteerが実行できない TypeError: Cannot read property 'on' of undefinedJavaScriptNode.jspuppeteerNuxt 現象 単体のCLIから起動すると成功するコードを、NuxtのserverMiddlewareとしてリクエスト経由で起動するとpage.gotoが動かない。 実行環境 Windows7 Node.js 11.0.0 (に上げたが変わらず) Puppeteer 1.9.0 (および@nextも同様) Nuxt.js 2.2.0 エラー出力 TypeError: Cannot read property 'on' of undefined at Function.addEventListener (~\node_modules\puppeteer\lib\helper.js:165:13