We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm having "fun" getting this package to initially load
// App.js const branch = require('git-branch'); console.log('gitBranch', branch);
TypeError: util.promisify is not a function (anonymous function)
3 | const fs = require('fs'); 4 | const util = require('util'); 5 | const find = require('findup-sync'); > 6 | const readFile = util.promisify(fs.readFile);
tested with: node v8.11.4 and v.9.3.0
The text was updated successfully, but these errors were encountered:
Hmm, strange. here are the docs for util.promisify(). Can you provide more information about your environment? Are you using electron? etc...
Sorry, something went wrong.
After it didn't work, I isolated it with a new create-react-app
{ "name": "create-react-app-demo", "version": "0.1.0", "private": true, "dependencies": { "react": "^16.4.1", "react-dom": "^16.4.1", "react-scripts": "1.1.4" },
I've checked the docs. The error is sometimes based on node < 8. But I'm not using that in this case.
what is the output of node -v on your system?
node -v
No branches or pull requests
I'm having "fun" getting this package to initially load
TypeError: util.promisify is not a function
(anonymous function)
tested with:
node v8.11.4 and v.9.3.0
The text was updated successfully, but these errors were encountered: