othiym23 / node-continuation-local-storage

implementation of https://github.com/joyent/node/issues/5243
BSD 2-Clause "Simplified" License
1.13k stars 207 forks source link

Can't resolve 'dgram' #139

Open moelholm opened 5 years ago

moelholm commented 5 years ago

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?