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

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

    Sometimes its because you have installed both babel-cli and babel/cli, or babel-core and @babel/core It causes conflicts

    So

    1) delete node_modules

    2) remove babel-cli, babel-core from your package.json, keep @babel/core, @babel/cli

    3) npm install

    babel-cli conflicts with @babel/cli

    bable-core conflicts with @babel/core

提交回复
热议问题