Git Product home page Git Product logo

Comments (5)

D4nte avatar D4nte commented on July 21, 2024

I think node-fetch should be added to this lib's dep list because the problem does exist when you use another lib that brings dns-over-http-resolver in.

For example, my project uses [email protected] and is facing the same issue:

/home/froyer/src/status-im/js-waku/node_modules/native-fetch/src/index.js
Cannot find module: 'node-fetch'. Make sure this package is installed.

from dns-over-http-resolver.

vasco-santos avatar vasco-santos commented on July 21, 2024

Hey folks, thanks for reaching out and apologies for the late answer.
We need to use an environment agnostic fetch implementation here, given we want to support both browser and Node.js.

We can go with https://github.com/web-std/io/tree/main/fetch to make this possible. Any of you would like to submit a PR?

from dns-over-http-resolver.

onichandame avatar onichandame commented on July 21, 2024

The multi-platform compatibility does make this harder to tackle. Axios and isomorphic-fetch are another 2 possible platform-agnostic tools that may help.
As I do not need to use this library anymore, I won't have enough time and testing cases for making a fix. The issue can be kept open to track the progress tho.

from dns-over-http-resolver.

D4nte avatar D4nte commented on July 21, 2024

It somehow got fixed in my project after some npm clean up 🤔

from dns-over-http-resolver.

github-actions avatar github-actions commented on July 21, 2024

🎉 This issue has been resolved in version 2.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

from dns-over-http-resolver.

Related Issues (4)

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.