Code Monkey home page Code Monkey logo

Comments (6)

douglas-mason avatar douglas-mason commented on September 3, 2024 1

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.

from cacheable-lookup.

szmarczak avatar szmarczak commented on September 3, 2024 1

Am I to understand that dns should be built-in somehow? It's not listed as a dependency of this project, even though it's being required.

rm -rf node_modules && npm install usually does the trick. The dns module is a native one, which means you don't have to install that.

from cacheable-lookup.

szmarczak avatar szmarczak commented on September 3, 2024

I haven't tested Node.js 14.0.0 yet

from cacheable-lookup.

douglas-mason avatar douglas-mason commented on September 3, 2024

from cacheable-lookup.

szmarczak avatar szmarczak commented on September 3, 2024

It surely works on Node.js 10, 12 and 13: https://github.com/szmarczak/cacheable-lookup/runs/612593859

from cacheable-lookup.

drazisil avatar drazisil commented on September 3, 2024

@douglas-mason Can you share how you updated @types/node to fix this?

 ERROR  Failed to compile with 1 errors                                                                                                                                        10:29:15 PM

This dependency was not found:

* dns in ./node_modules/cacheable-lookup/source/index.js

To install it, you can run: npm install --save dns

I've added "@types/node": "14.0.22" and I don't want to install the dns package from npm since it has security issues. Am I to understand that dns should be built-in somehow? It's not listed as a dependency of this project, even though it's being required.

This is my tree

from cacheable-lookup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.