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

The @biconomy/web3-auth does not work with next.js #75

Closed
dishant0406 opened this issue Nov 16, 2022 · 4 comments
Closed

The @biconomy/web3-auth does not work with next.js #75

dishant0406 opened this issue Nov 16, 2022 · 4 comments

Comments

@dishant0406
Copy link

dishant0406 commented Nov 16, 2022

Describe the bug
The @biconomy/web3-auth does not work with next.js.
Importing the social login gives error with the styles

To Reproduce
Steps to reproduce the behavior:

  1. Import the socialLogin
  2. It is not working with nextjs

Expected behavior
It should work properly

Screenshots
image

@asheerrizvi
Copy link
Contributor

asheerrizvi commented Nov 16, 2022

Thanks for opening this @dishant0406, we will have a look. Seems like a Next.js quirk but we will see if we can come up with an alternative.

@pythonpete32
Copy link

not a fix for the problem but you can just use use web3Auth directly, I have just added it in this boilerplate https://github.com/pythonpete32/hack-web3-boilerplate/blob/main/ui/lib/wagmiClient.ts

@asheerrizvi
Copy link
Contributor

@dishant0406 I think you can use this while we are trying to come up with a better solution

https://github.com/bem/next-global-css

This was referenced Nov 28, 2022
@AmanRaj1608
Copy link
Contributor

This issue is fixed now. Can check out working example code here https://github.com/bcnmy/sdk-examples/tree/master/nextjs-biconomy-web3Auth

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

5 participants