fetch-cached-dns icon indicating copy to clipboard operation
fetch-cached-dns copied to clipboard

Module not fount dns, dgram, ,,,

Open hoangphuc17 opened this issue 5 years ago • 2 comments

I get this error when doing follow the guide const fetch = require('@zeit/fetch-cached-dns')(require('node-fetch'))

Module not found: Can't resolve 'dns' in 'C:\Sony\work\saostar\saostar-fe-pc\node_modules\native-dns-cache'

hoangphuc17 avatar Jun 07 '20 15:06 hoangphuc17

Is there already an solution for this issue? I got the same error.

JoepdeJong avatar May 31 '21 21:05 JoepdeJong

dns and dgram are standard library https://nodejs.org/api/dgram.html https://nodejs.org/api/dns.html

Which node, npm/yarn versions are you using? And which OS? in node console, does require('dgram') and require('dns') work?

jamo avatar Jun 01 '21 09:06 jamo