Syntax error: Unexpected token, expected ","
Unanswered
American Wirehair posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/1.png)
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](https://cdn.discordapp.com/attachments/1127735381434048584/1127735381597630494/Screenshot_2023-07-09_at_6.57.07_PM.png)
![Image](https://cdn.discordapp.com/attachments/1127735381434048584/1127735381870252153/Screenshot_2023-07-09_at_6.57.22_PM.png)