You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ yarn start
yarn run v1.7.0
$ react-scripts start
Unexpected token :
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I stumbled upon this issue #5185 because I was experiencing the exact same "Actual Behavior". What fixed things for me was changing my setupProxy.js file from this:
Activity
Timer commentedon Oct 1, 2018
This is the expected behavior. This file runs in the Node environment and as such, only supports its syntax.
Timer commentedon Oct 1, 2018
df98c0c
RodneyU215 commentedon Oct 22, 2018
I stumbled upon this issue #5185 because I was experiencing the exact same "Actual Behavior". What fixed things for me was changing my
setupProxy.jsfile from this:to this:
I'm commenting incase it saves someone else time in the future.
Timer commentedon Oct 22, 2018
@RodneyU215 that proxy seems pretty simple, does the normal
proxystring option not work for your use case?Don't mind me if it was a reduced case.
RodneyU215 commentedon Oct 23, 2018
Hi @Timer! Yes the normal
proxystring does work for this use case. I was merely highlighting the incompatibility with es2015 module syntax.