Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

screenshots / ignores source directory and uses the destination directory as source directory #18

Closed
aheissenberger opened this issue Oct 27, 2017 · 1 comment
Labels

Comments

@aheissenberger
Copy link

screenshots.js:

#!/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"

@stereobooster
Copy link
Owner

Fixed in v0.7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants