cute-stack icon indicating copy to clipboard operation
cute-stack copied to clipboard

substring issue causing crash on server

Open spkellydev opened this issue 6 years ago • 0 comments

I apologize for my code formatter messing with some spacing and formatting, but this PR is in response to #13 wherein cute-stack needs to be required after the server starts. This wasn't a possibility in my Typescript project, so I looked into the issue. It appears the problem comes from the script not being loaded before cute() runs.

Otherwise, maybe it's possible to use Node's new AsyncResource in this scope? https://github.com/nodejs/node/blob/master/doc/api/async_hooks.md#new-asyncresourcetype-options

spkellydev avatar Aug 16 '18 05:08 spkellydev