lnc-web icon indicating copy to clipboard operation
lnc-web copied to clipboard

Better error handling when loaded in server

Open apotdevin opened this issue 2 years ago • 1 comments

In frameworks like NextJS, components are server side rendered by default unless specified. This causes issues with this lib and causes it to throw a self is not defined error which isn't very informative of why it's failing.

It would be nice if this scenario could be handled internally in the lib and return an accurate error of the reason for failing.

apotdevin avatar Dec 12 '22 13:12 apotdevin

You also get the self is not defined error if you try to use lnc in node.js on the command line

itsrachelfish avatar Feb 22 '23 04:02 itsrachelfish