Irregular Uncaught SyntaxError: Invalid or unexpected token Error #70918
Unanswered
BarishSarac
asked this question in
Help
Replies: 1 comment 1 reply
-
Got a repository to look at? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Hello,
I get this error intermittently:
Uncaught SyntaxError: Invalid or unexpected token (at layout.js:259:29)
"at layout.js" is a link, when I click, It shows the below file and location, it's not a file I have, it seems to be one of the build files.
I have tried to remove & add some parts of the code and even replacing {children} in layout.tsx inside src/app with 123 which is the main layout file doesn't make a difference. App shows 123 and console would show no error for once, then next load I would see an error. Sometimes I get this error sometimes I don't. What the issue could be?
I removed all new lines and added new lines again just to make sure some invisible char didn't get in there. I removed some logic to see if any of my logic causing this, still no help.
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions