node-continuation-local-storage icon indicating copy to clipboard operation
node-continuation-local-storage copied to clipboard

Can't resolve 'dgram'

Open moelholm opened this issue 5 years ago • 0 comments

While playing with this module I'm getting errors such as this

Module not found: Error: Can't resolve 'dgram' in '..node_modules/native-dns/lib'
[0]  @ ./node_modules/native-dns/lib/utils.js 21:12-28
[0]  @ ./node_modules/native-dns/lib/client.js
[0]  @ ./node_modules/native-dns/dns.js
[0]  @ ./node_modules/dns/lib/dns.js
[0]  @ ./node_modules/async-listener/index.js
[0]  @ ./node_modules/continuation-local-storage/context.js

Seems to be happening when my app is performing server side rending of react code...

It happens when require('continuation-local-storage'); is present.

(above error doesn't appear when cls related code is completely absent)

Is this a well known issue?

moelholm avatar Mar 01 '19 14:03 moelholm