Open iLoveForDi opened 3 years ago
Local debugging can evoke normal pages,but the page cannot be started after packaging ` const puppeteer = require('puppeteer-electron') const pupe = async (url, configInfo) => { try { console.log('configInfo:', configInfo); const browser = await puppeteer.launch({ headless:false, args: [ '--disable-web-security' ], }) // default is true const pages = await browser.pages() const page = pages[0]
await page.goto(url) } catch (error) { console.log('pupe-error:', error); }
} `
Local debugging can evoke normal pages,but the page cannot be started after packaging ` const puppeteer = require('puppeteer-electron')
const pupe = async (url, configInfo) => { try { console.log('configInfo:', configInfo); const browser = await puppeteer.launch({ headless:false, args: [ '--disable-web-security' ], }) // default is true const pages = await browser.pages() const page = pages[0]
} `