-
Notifications
You must be signed in to change notification settings - Fork 652
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
[bug] Build fails in monorepo #1776
Comments
@neel-ds Just to confirm is this the RainbowKit's monorepo or is this your one ? Also what pnpm version are you using ? |
In my monorepo. pnpm version: 8.3.1 |
@neel-ds Since you're using next.js app router can i have a look at your provider code ? Since you need to define The reason for this is because next.js app router uses server components and client components. Wagmi and RainbowKit configuration need to use client components. If this doesn't work please can i get a small reproducible example ? |
@kosmoskey Yes! I defined 'use-client'. Please check the attached screenshot of For your reference:
|
@neel-ds It would be super helpful to get a small reproducible example since i have no idea what exactly is wrong with the code you have. Would a small reproducible example be possible ? |
@kosmoskey Thank you so much for the help! I have updated it according to the reference but it still fails in vercel.
|
@neel-ds Are you able to share a small reproducible example ? Just a github code or codesandbox would be great. Since i only know your |
Here, you can find a reproducible example. Steps to reproducePlease try to build the project by following command npm run build |
@neel-ds Please update your
Since you're using server-side rendering make sure to add
|
Thank you very much. It solves the issue. |
Is there an existing issue for this?
RainbowKit Version
2.0.0
wagmi Version
2.5.7
Current Behavior
It works well in an isolated new app. I tried implementing it in Monorepo, and it works well but the build fails due to a type error from the package. I think it's maybe due to
wagmi/core
. I have followed the docs exactly with the Next App Router Sandbox example.Expected Behavior
No response
Steps To Reproduce
No response
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: