Skip to content

Getting nextjs keys error when trying to re-login #91

@michael-meetkai

Description

@michael-meetkai

Hello
Im getting the following error when running this example https://github.com/privy-io/examples/tree/main/privy-next-starter
I also tried to start from scratch and Im getting the same with clean code.
This happens after u login at least once with a wallet, lets say metamask, once u have the modal showing the last used, next will throw that error Im sharing.

How to reproduce: Login, logout, open the modal again, u will see the keys error, I guess could be how the list of wallets or latest logins is mapping in the sdk ?

## Error Type
Console Error

## Error Message
Each child in a list should have a unique "key" prop.

Check the render method of `div`. It was passed a child from Sg. See https://react.dev/link/warning-keys for more information.


    at Providers (file://C:/Users/mpale/Projects/meetkai/predictions-market/apps/website-public/.next/dev/static/chunks/apps_website-public_src_2c448d5c._.js:83:285)
    at RootLayout (src\app\layout.tsx:29:9)

## Code Frame
  27 |     <html lang="en" suppressHydrationWarning>
  28 |       <body className={`${inter.variable} antialiased`}>
> 29 |         <Providers>
     |         ^
  30 |           <AppLayout isAuthenticated={isAuthenticated}>
  31 |             {children}
  32 |           </AppLayout>

Next.js version: 16.0.3 (Turbopack)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions