puppeteer-heroku-buildpack: mv: cannot stat '/app/.cache/puppeteer': No such file or directory
> mkdir ./.cache && mv /app/.cache/puppeteer ./.cache
mv: cannot stat '/app/.cache/puppeteer': No such file or directory
-----> Build failed
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 2
- Comments: 19
This fixed it for me: Make sure the puppeteer buildpack is placed before the node js:
For your package.json, add this line as the last thing to do after building everything else
before deploying:
heroku builds:cache:purge -a YOUR_APP
@ElitKondor
"puppeteer": "^16.2.0",
I got it to work by following creating a .cjs file etc from this post https://stackoverflow.com/questions/52225461/puppeteer-unable-to-run-on-heroku
Having some other cloudinary api_key issues now though.
Thank you @hitwill 🙏
Follow the conversation from here
Follow the conversation from here: https://github.com/jontewks/puppeteer-heroku-buildpack/issues/130#issuecomment-1720774565
worked thanks @hitwill
@opeyemidy try
node node_modules/puppeteer/install.mjs
(mjs instead of js)
@opeyemidy yes. I am using: “puppeteer”: “^21.2.0”
I had to downgrade puppeteer