Created
May 22, 2018 16:52
-
-
Save devhero/ed4306de5a9746bc83457eb6b7f741da to your computer and use it in GitHub Desktop.
ERROR in ./index.js Module build failed: SyntaxError: Unexpected token
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://stackoverflow.com/questions/34614812/error-in-index-js-module-build-failed-syntaxerror-unexpected-token#34619867 | |
// .babelrc | |
{ | |
"presets": [ | |
"react", | |
"env" | |
], | |
"plugins": [ | |
"transform-object-rest-spread" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment