You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/usr/bin/env node
const{ run }=require("react-snap");run({source: "build",destination: "build/screenshots",saveAs: "png"});
Error:
$ yarn screenshots
yarn run v1.2.1
$ scripts/screenshots.js
events.js:182
throw er; // Unhandled 'error' event
^
Error: ENOENT: no such file or directory, open '/TST/react16/build/screenshots/index.html'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
index.html exists in /TST/react16/build/ and there is no problem if destination is set to destination: "build"
The text was updated successfully, but these errors were encountered:
screenshots.js:
Error:
index.html
exists in/TST/react16/build/
and there is no problem if destination is set todestination: "build"
The text was updated successfully, but these errors were encountered: