purescript-debug icon indicating copy to clipboard operation
purescript-debug copied to clipboard

Requiring "util" is not working with node

Open wclr opened this issue 2 years ago • 2 comments

When working with ES modules node doesn't support require, we don't have the ability to have an output using util.inspect. Not sure how to fix it best way, to have a separate module version for Node?

wclr avatar Apr 19 '23 09:04 wclr

Hmm, yeah I think that'll have to be the case. Or maybe could add a node-specific module in here.

garyb avatar Apr 20 '23 14:04 garyb

Yes, I mean Debug.Node module in this package. And it should be reimplemented in the same way as Affjax versions with passing specific output functions, not to duplicate the logic.

wclr avatar Apr 22 '23 17:04 wclr