FullstackAcademy / boilermaker

Code scaffold for projects

Home Page:https://www.youtube.com/watch?v=7bLSuTHH4Ag&list=PLx0iOsdUOUmn7D5XL4mRUftn8hvAJGs8H

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Breaking Babel if rebuild npm packages

mullaney opened this issue · comments

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.

This looks like it's been addressed by @fterdal already in issue #95