-
Notifications
You must be signed in to change notification settings - Fork 398
Description
Bug Report
Current Behavior
I get the following error when I run npm run postbuild
:
> react-snap
π₯ pageerror at /: SyntaxError: Unexpected token '?'
β
crawled 1 out of 1 (/)
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.