Closed mystist closed 2 hours ago
Remove any client side import from layout.tsx resolves the problem. Including the wagmi
ssr cookie use case.
If you need the ssr logic, check the other code which can only works in client mode, in my case, I should add 'use client' in my config.ts
cause I have the rainbowkit logic there.
Is there an existing issue for this?
RainbowKit Version
^2.1.7
wagmi Version
^2.12.17
Current Behavior
Error when run
pnpm build
on a refresh new nextjs project usepnpm create next-app@rc --turbo
with ts, app router, without src folder.Installed deps with:
pnpm add @rainbow-me/rainbowkit wagmi viem@2.x @tanstack/react-query
Use code below and run
pnpm build
will get error:code here:
Expected Behavior
No response
Steps To Reproduce
No response
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
No response