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

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

    From the Babel Docs, I found that there is an issue with the order in which you install the deps.

    Note: Please install @babel/cli and @babel/core first before npx babel, otherwise npx will install out-of-dated babel 6.x.

    As per the usage docs. I found that removing both items from package.json and adding them in order, fixed my issue. Bizarre edge case.

提交回复
热议问题