Next.js Discord

Discord Forum

Syntax error: Unexpected token, expected ","

Unanswered
American Wirehair posted this in #help-forum
Open in Discord
Avatar
American WirehairOP
I just started getting this error when I try and run
next dev
It was working previously and nothing in the file has changed. I have tried deleting the node_modules and reinstalling it
- error ./src/app/layout.tsx:28:1
Syntax error: Unexpected token, expected ","

  26 | export default function RootLayout({
  27 |  children,
> 28 | }: {
     |  ^
  29 |  children: React.ReactNode
  30 | }) {
  31 |  return (
- warn Fast Refresh had to perform a full reload due to a runtime error.
Image
Image

0 Replies