Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error handling when loaded in server #72

Open
apotdevin opened this issue Dec 12, 2022 · 1 comment
Open

Better error handling when loaded in server #72

apotdevin opened this issue Dec 12, 2022 · 1 comment

Comments

@apotdevin
Copy link

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.

@itsrachelfish
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants