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

TypeError: this._onError is not a function #217

Open
rahulvramesh opened this issue Jul 6, 2022 · 4 comments
Open

TypeError: this._onError is not a function #217

rahulvramesh opened this issue Jul 6, 2022 · 4 comments

Comments

@rahulvramesh
Copy link

while i try to run with following command

ayespy snap --browser chrome --config ./ayespy-config.json --run "Home"

getting

info ayespy Logger Log level is info
info [configValidator] : Config validated ✅
info [run] : Getting snapshots... 📸

   Progress [-----------------------------------------------------------------] 0% | ETA: 0s | Snapped 0/1/Users/rahulvr4
      this._onError();
           ^

TypeError: this._onError is not a function
    at SnapShotter.takeSnap (/Users/name/.nvm/versions/node/v16.15.0/lib/node_modules/aye-spy/lib/snapshotter.js)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Promise.all (index 0)
    at async /Users/name/.nvm/versions/node/v16.15.0/lib/node_modules/aye-spy/lib/getScreenshots.js:88:7
@brunopc-net
Copy link

@rahulvramesh were you able to resolve this? I'm having the same problem, 1st time with ayespy

@rahulvramesh
Copy link
Author

@rahulvramesh were you able to resolve this? I'm having the same problem, 1st time with ayespy

Unfortunately no. Seems repo is not maintained as well.

@brunopc-net
Copy link

@rahulvramesh bummer. Thank you for your fast reply

@mattford
Copy link

Looks like it was introduced in this commit 34392dc

The constructor signature for SnapShotter changes to include a new onInfo parameter, however the initialisation of the SnapShotter isn't updated, so it uses the onError callback value for _onInfo and _onError ends up undefined.

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

No branches or pull requests

3 participants