-
Notifications
You must be signed in to change notification settings - Fork 29
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
Module '"dns"' has no exported member 'promises' #16
Comments
I haven't tested Node.js 14.0.0 yet |
I also tested 12.4 and 12.6.
|
It surely works on Node.js 10, 12 and 13: https://github.com/szmarczak/cacheable-lookup/runs/612593859 |
I'm sorry, it looks like my project's type definitions for node were out of sync. Thank you for your time. Issue can be closed. |
@douglas-mason Can you share how you updated
I've added This is my tree
|
|
I've added
got
to my project which hascacheable-lookup
as a dependency. I can't compile the TypeScript project as I get the following error.node_modules/cacheable-lookup/index.d.ts(1,34): error TS2305: Module '"dns"' has no exported member 'promises'.
If I remove
promises as dnsPromises
from the first line ofindex.d.ts
then I can compile the project.import {Resolver, LookupAddress, promises as dnsPromises} from 'dns';
thanks!
TypeScript: 3.8.3
Node: 14.0.0
cacheable-lookup: 4.1.2
The text was updated successfully, but these errors were encountered: