foxdriver
foxdriver copied to clipboard
Error: Cannot find module 'babel-runtime/helpers/asyncToGenerator'
Interesting, this didn't happen before, but happens with a fresh install now.
Error: Cannot find module 'babel-runtime/helpers/asyncToGenerator'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.
After installing babel-runtime, the new error is:
(node:22784) UnhandledPromiseRejectionWarning: Error: TypeError: document.querySelector(...) is null
at /Users/dietrich/misc/puppeteer-fx/node_modules/foxdriver/build/domains/console.js:87:23
at Generator.next (
Some more info here on potential fix:
https://stackoverflow.com/questions/34338416/babelhelpers-asynctogenerator-is-not-a-function-on-react-native-0-16-0-and-0-1#34736520
I got the same error, doing yarn add babel-runtime
resolved it for me for now, but I am haven't done much more than that yet
I can see that babel-runtime
was added to devDependencies
in commit a08837156b432cd1a7a7777811d2529440d9b6a1
Perhaps it should be added to dependencies
instead?
@sunnz, your solution worked for me.
Thanks!