joschan21 / nextjs-realtime-chat

A performant and reliable realtime-chat-app built with NextJS 13
939 stars 162 forks source link

Unhandled Runtime Error Error: Unexpected token u in JSON at position 0 #2

Open yasirghouri opened 1 year ago

yasirghouri commented 1 year ago

Getting this error after accepting user friend request. Error is coming from line 26 of dashboard/page.

tommylegros commented 1 year ago

I believe this is an error with Next js and can be a sign you're using the newer version of Next. First check if the version you're running is "next": "13.2.4", from the package.json if it isn't you can downgrade or a work around is to add a empty space before the JSON token.