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

importing pipeline-ui in Next JS app gives ""window not defined " error. #11

Open
brahmapsen opened this issue Oct 27, 2021 · 4 comments

Comments

@brahmapsen
Copy link

trying to use pipeline-ui in my Next JS application. But, "import { AlgoButton, AlgoAddress, AlgoSendButton, Pipeline} from 'pipeline-ui' " is resulting in "window not defined error". It is because it is not able to find "window" from the server side from a Next JS app.

@robert-zaremba
Copy link

Pipeline UI team, you should use globalThis instead of global.

@headline-design
Copy link
Owner

@brahmapsen This was explained via Discord. PIPELINE-UI is not currently compatible with the Next.JS framework. Closing this issue.

@headline-design
Copy link
Owner

PIPELINE-UI specifically is a client-side library.

@robert-zaremba
Copy link

If you use globalThis instead of global in your code then you have better compatibility.
PS: Next.JS framework is for client side (it's for building a UI).

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

3 participants