I am just learning to switch from create-react-app
to babel
and webpack
. I used a set up which worked for the tutorial code, after I got it to work I tried it on my app, but I got an error at :
Module build failed: SyntaxError: C:/App/smodin-post-writer-no-cra/src/components/UserSettings.js: Unexpected token (7:10)
_confirm = async () => {
| ^
73 | const { name, email, password } = this.state
74 | if (this.state.login) {
75 | const result = await this.props.signinUserMutation({
My presets are "presets" : ["es2015", "react"]
. All dependencies should be installed correctly.
Any ideas why I'm getting this error?
Note: using npm run eject
for the app and running it that way works, but I get a ton I don't need.