Breaking Babel if rebuild npm packages
mullaney opened this issue · comments
Kevin Kelly commented
I deleted my package-lock.json file and the node_modules file and reran npm install
in an effort to address numerous vulnerabilities that were brought up from running npm audit
. After the install, when trying to run my tests, I ran into this problem:
On update to version 7.00-beta.46 Get Decorators Support Error
I solved it by removing the ^ wherever ^7.0.0-beta.40
appears in the package.json file and then ran npm install
again:
"@babel/core": "7.0.0-beta.40",
"@babel/polyfill": "7.0.0-beta.40",
"@babel/preset-env": "7.0.0-beta.40",
"@babel/preset-react": "7.0.0-beta.40",
"@babel/preset-stage-2": "7.0.0-beta.40",
"@babel/register": "7.0.0-beta.40",
Perhaps the @babel version should be changed to not use the beta version which is susceptible to breaking changes from babel.
Kevin Kelly commented