Next.js Discord

Discord Forum

error on the layout.tsx when i run the code for the first time

Unanswered
West African Lion posted this in #help-forum
Open in Discord
West African LionOP
Uncaught SyntaxError: Invalid or unexpected token (at layout.js:291:29)
this error appears on the console when i run the code for the first time. meanwhile i cannot interact with the website when this happends. but when i refresh the page the error disappers and i get able to interact with the web app again.

4 Replies

American Crow
I got the same issue. Are you using bun too?
@American Crow I got the same issue. Are you using bun too?
West African LionOP
nope
but the amount of errors is increasing by time
here's my console