start server with errors
jiangyh1024 opened this issue · comments
@jiangyh1024 yeah, I've just upgraded to the latest react-scripts and got the same issue. When I added DISABLE_NEW_JSX_TRANSFORM=true
it started working for a while but then died again with absolutely the same issue.
I'm investigating right now
JFYI, I reproduced the issue after upgrading all the dependencies.
Assuming we need to drop node 6 and 8 support and upgrade major version of this plugin, I believe this fix should be coupled with that release, thus it's fine to upgrade internal dependencies here.
Well, it turned out to be an issue in babel itself. Look at the issue and related PR: babel/babel#12478
I think we should wait for new patch version of babel plugins, but in the meantime you can just specify older version of @babel/plugin-transform-react-jsx
.
This is what I did for my project:
"devDependencies": {
"@babel/plugin-transform-react-jsx": ">= 7.12 < 7.12.10 || > 7.12.10"
}
CC @jiangyh1024
the babel issue looks resolved now