Skip to content
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

TypeError: transport.request is not a function #75

Open
DragonDmoney opened this issue Apr 29, 2022 · 3 comments
Open

TypeError: transport.request is not a function #75

DragonDmoney opened this issue Apr 29, 2022 · 3 comments

Comments

@DragonDmoney
Copy link

DragonDmoney commented Apr 29, 2022

Installed withnpm install dohjs.

  import { DohResolver } from 'dohjs';
  const resolver = new DohResolver('https://1.1.1.1/dns-query');
  resolver.query('example.com', 'A')

and I get the error:

image

@dschonholtz
Copy link

I'm seeing the same thing when using a vue3 app that installs the packages with Vite.

@kimbo
Copy link
Contributor

kimbo commented Nov 3, 2022

What version of node/npm are you using? And can you provide any other details about your environment/how to reproduce?

@LehuyH
Copy link

LehuyH commented Oct 3, 2023

It's likely because dohjs directly uses modules that are not on the browser. Try importing dohjs/dist/doh.min.js instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants