fwouts / react-screenshot-test

A dead simple library to screenshot test React components
https://www.npmjs.com/package/react-screenshot-test
MIT License
618 stars 24 forks source link

Library isn't compatible with M1 Mac #346

Closed michaelbayday closed 1 year ago

michaelbayday commented 1 year ago

Can we update the library so that it installs a more recent version of puppeteer (and its associated docker image)?

Since the project specifies puppeteer version 8 which is incompatible with m1 mac, we're unable to use the library with M1 Macs

Exit code: 1
Command: node install.js
Arguments: 
Directory: /Users/michael.dinh/Desktop/Repos/robot-styles/node_modules/puppeteer
Output:
The chromium binary is not available for arm64.
If you are on Ubuntu, you can install with: 

 sudo apt install chromium

 sudo apt install chromium-browser

/Users/michael.dinh/Desktop/Repos/robot-styles/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:115
                    throw new Error();
                    ^

Error
    at /Users/michael.dinh/Desktop/Repos/robot-styles/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:115:27
    at FSReqCallback.oncomplete (node:fs:194:21)
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

fwouts commented 1 year ago

Hi @michaelbayday, this package is no longer maintained, but you can try the newer @previewjs/screenshot instead.