使用puppeteer打包报错 #536
Unanswered
wumingluren
asked this question in
Q&A
Replies: 1 comment 1 reply
-
路径问题,puppeteer-core 推荐打包到asar,相关可以参考 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
运行正常打包后运行报错。
使用puppeteer-core
先报错没有路径
const electronExePath = app.getPath('exe')
const browser = await puppeteer.launch({
executablePath: electronExePath
})
又报错无法启动
Beta Was this translation helpful? Give feedback.
All reactions