Support for the experimental syntax \'optionalChaining\' isn\'t currently enabled
I was getting the above error. I followed this post and
React scripts 3.3.0 and above supports it. There is no need to install the react-scripts@next.
Just put in the package.json "react-scripts": "^3.3.0" and it will work.
"react-scripts": "^3.3.0"