所以 react-snap 在 postbuild 命令中定义的 npm run build 之后自动运行,对不起,由于公司政策,我不得不评论我的计算机路径
xxxxxxxxxx@0.1.0 postbuild /home/xxxxxx/xxxx/xxxxxxxxxxx
> react-snap
️ console.log at /: [GPT] Invalid arguments: PubAdsService.refresh().
️ console.log at /: [GPT] Invalid arguments: PubAdsService.refresh().
️ console.log at /: [GPT] Invalid arguments: PubAdsService.refresh().
️ console.log at /: [GPT] Invalid arguments: PubAdsService.refresh().
️ console.log at /: [GPT] Invalid arguments: PubAdsService.refresh().
️ console.log at /: [GPT] Invalid arguments: PubAdsService.refresh().
error at /: Error: Page crashed!
at Page._onTargetCrashed (/xxxx/xxxxxxxxxx/xxxxx/xxxxxxxxxxxxx/node_modules/puppeteer/lib/Page.js:215:24)
at CDPSession.Page.client.on.event (/xxxx/xxxxxxxxxx/xxxxx/xxxxxxxxxxxxx/node_modules/puppeteer/lib/Page.js:123:56)
at CDPSession.emit (events.js:198:13)
at CDPSession._onMessage (/xxxx/xxxxxxxxxx/xxxxx/xxxxxxxxxxxxx/node_modules/puppeteer/lib/Connection.js:200:12)
at Connection._onMessage (/xxxx/xxxxxxxxxx/xxxxx/xxxxxxxxxxxxx/node_modules/puppeteer/lib/Connection.js:112:17)
at WebSocketTransport._ws.addEventListener.event (/xxxx/xxxxxxxxxx/xxxxx/xxxxxxxxxxxxx/node_modules/puppeteer/lib/WebSocketTransport.js:44:24)
at WebSocket.onMessage (/xxxx/xxxxxxxxxx/xxxxx/xxxxxxxxxxxxx/node_modules/puppeteer/node_modules/ws/lib/event-target.js:120:16)
at WebSocket.emit (events.js:198:13)
at Receiver.receiverOnMessage (/xxxx/xxxxxxxxxx/xxxxx/xxxxxxxxxxxxx/node_modules/puppeteer/node_modules/ws/lib/websocket.js:789:20)
at Receiver.emit (events.js:198:13)