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

前端 未结 10 874
深忆病人
深忆病人 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:18

    I accidentally had a file called .babelrc in my root directory with the following contents:

    {
      "presets": ["@babel/preset-env"]
    }
    

    After I deleted that file, I no longer got this error when running my gulp command.

提交回复
热议问题