Requires Babel “7.0.0-0” but was loaded with “6.26.3”

前端 未结 10 870
深忆病人
深忆病人 2020-12-08 06:16

Keep getting this error no matter what I tried installing (babel wise) as I follow other similar reports. this is the stack trace:

error: bundli         


        
10条回答
  •  执笔经年
    2020-12-08 07:16

    None of the solutions I found online worked, I fixed it the following way:

    1. Remove jest and @babel/core from package.json (keep babel-core v7 bridge)
    2. Remove node_modules and package-lock.json
    3. npm install
    4. npm install jest @babel/core --save-dev

提交回复
热议问题