Comments (3)
Are you using TypeScript or Babel? Typescript requires the import * as pify from
syntax. In order to let that work every module should export a default
property.
from pify.
Then something is wrong with your code. Both me and @sindresorhus are using pify
with ES2015 modules syntax in many repositories https://github.com/search?q=import+pify+user%3Asindresorhus&type=Code&utf8=%E2%9C%93.
Don't know if it's a typo on your part, but it should be import pify from 'pify'
:).
from pify.
Thank you for a quick response! Not quoting was a typo.
I've had this issue on my todo list to report for a while and forgot that it's from typescript I noticed this.
from pify.
Related Issues (20)
- feature: all bind-all when passed an object HOT 1
- Failed to minify code with webpack 3 HOT 1
- Error in line: for (const key in obj) HOT 1
- feature: Handle function where callback is first HOT 1
- Rethink your usage of pinkie-promise HOT 5
- pify(setTimeout) does not work correctly in Node.js HOT 1
- Promisifying all methods of a ES6 Class instance doesn't seem to work HOT 5
- TypeError when passing undefined or null HOT 7
- Precompile to es5 before publish to npm HOT 1
- How does this differ from util.promisfy HOT 1
- losing bound this in promise HOT 4
- pify and couchnode HOT 2
- Major release without release notes? HOT 1
- Promisifying prototype functions broken by v4 HOT 1
- Add TypeScript type definition HOT 12
- multiArgs for only some methods on a module/object HOT 3
- Please bind the function HOT 3
- Support functions with seperate success and error callbacks HOT 1
- Module should not trigger getters on promisified function HOT 1
- Does module.exports handle the case where input is undefined? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pify.