lnc-web
lnc-web copied to clipboard
Better error handling when loaded in server
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.
You also get the self is not defined error if you try to use lnc in node.js on the command line