-
Notifications
You must be signed in to change notification settings - Fork 392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SyntaxError: Unexpected token '?' #577
Comments
Same exact issue here, I found that adding |
Lol this did not work for me. Using react-router & Vite. This fix passed the syntax error but only rendered my root page. Any documentation where I can define my routes statically? Does this even work with react-router? Should I join the masses and move to Next.js? Am I real? (Of course I'm aware that this package isn't actively maintained and I don't expect anyone to have these answers. Simply joking.) |
I hit this on a really old project and traced it to a google maps iframe embed URL (that had a question mark). Setting the following config helped me:
|
@brandonburkett did you find any solution ?? |
same issue with the question mark |
I have fixed that issue by changing the |
I guess it's an issue from using vite with react, I've recreated my project with plain create-react-app and it starts crawling the pages as intended with warnings. |
I'm also having this problem and I don't have a solution yet, I'm really tired |
Anyone found solution for this ? |
give me solution plz |
|
For me, specifying a target to lower the ECMAScript version worked. In my case in Vite config. If you use webpack, you may need to change different files.
|
fixed it for me. |
Bug Report
Current Behavior
I get the following error when I run
npm run postbuild
:I am trying to deploy the website on Netlify (it's currently live, building from an earlier commit here: https://bykiandra.netlify.app). However, Netlify can't build from any commit where the postbuild script exists.
I've tried looking for the error, but there's nothing amiss in my index.html file, and there are no errors in the console when I build and run my website locally.
Reproducible demo
Repo: https://github.com/bykiandra/home-bykiandra
Expected behavior/code
I'm expecting the script to run with no errors, and for Netlify to be able to build and host the website without any issue.
Possible Solution
I've gone through the other issues and tried some suggestions here and there, but nothing's worked so far. I'll continue fiddling and see if I can find a solution myself.
The text was updated successfully, but these errors were encountered: