nisabmohd / ChatGPT

I've developed a ChatGPT clone using Next.js 14, Shadcn-UI, Prisma ORM, and integrated it with the OpenAI API. It offers a user-friendly conversational AI experience.
Apache License 2.0
289 stars 120 forks source link

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

Closed TheKryptoDev closed 1 year ago

TheKryptoDev commented 1 year ago

Followed instructions properly, getting this error:

react-jsx-dev-runtime.development.js:87 Warning: Each child in a list should have a unique "key" prop.

Check the render method of Messages. See https://reactjs.org/link/warning-keys for more information. at Message (http://localhost:5173/src/components/Message.tsx:18:3) at Messages (http://localhost:5173/src/components/Messages.tsx:20:3) at div at div at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=ffbdf1ee:2767:5) at Routes (http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=ffbdf1ee:3098:5) at div at App (http://localhost:5173/src/App.tsx:27:35) at Router (http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=ffbdf1ee:3045:15) at BrowserRouter (http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=ffbdf1ee:3458:5) printWarning @ react-jsx-dev-runtime.development.js:87 :8000/chatgpt/chat/38160bca288b87cef52cce:1 Failed to load resource: the server responded with a status of 400 (Bad Request)

Cant find the cause.

nisabmohd commented 1 year ago

fixed that unique key prop 👍

TheKryptoDev commented 1 year ago

You're a star, bro!