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
A new create-react-app project throws an eslint 'Unexpected token' error with the use of the spread operator (aka {...} triple dots). I've looked around and found convos that alternately suggest editing .babelrc or .eslintrc or webpack.config.js or adding experimentalObjectRestSpread or babel-plugin-transform-object-rest-spread or updating babel-preset-stage (which is also said to be deprecated), but none of these solutions in the context of CRA, so I'm not even sure where to try applying these things. Any help, please?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
A new create-react-app project throws an eslint 'Unexpected token' error with the use of the spread operator (aka {...} triple dots). I've looked around and found convos that alternately suggest editing .babelrc or .eslintrc or webpack.config.js or adding experimentalObjectRestSpread or babel-plugin-transform-object-rest-spread or updating babel-preset-stage (which is also said to be deprecated), but none of these solutions in the context of CRA, so I'm not even sure where to try applying these things. Any help, please?
Beta Was this translation helpful? Give feedback.
All reactions