I get the same error as others with yarn build. It doesnt look like it knows about JSX. (I am new to React, so forgive me that I dont have a solution!)
OK, it looks like for this error, my when I copy pasted the above config into .babelrc I didnt notice, nor did my IDE, that the double quotes were not kosher. Once I fixed the double quotes it complained :
Options {"absoluteRuntime":false} passed to <path>/node_modules/babel-preset-react-app/index.js which does not accept options.
So I removed those options and it seems to work without errors (at least so far...)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I get the same error as others with
yarn build
. It doesnt look like it knows about JSX. (I am new to React, so forgive me that I dont have a solution!)Even after installing
@babel/cli @babel/core @babel/preset-react
OK, it looks like for this error, my when I copy pasted the above config into
.babelrc
I didnt notice, nor did my IDE, that the double quotes were not kosher. Once I fixed the double quotes it complained :Options {"absoluteRuntime":false} passed to <path>/node_modules/babel-preset-react-app/index.js which does not accept options.
So I removed those options and it seems to work without errors (at least so far...)