据上述错误显示,我安装的 babel-loader版本和babel-core版本不匹配,
两种方法解决:
(1)、babel-loader@8需要babel 7(babel-core).
(2)、如果要使用babel-core 6,需要安装babel-loader@7的版本。使用命令npm uninstall babel-loader ,然后使用
npm install babel-loader@7.1.5
据上述错误显示,我安装的 babel-loader版本和babel-core版本不匹配,
两种方法解决:
(1)、babel-loader@8需要babel 7(babel-core).
(2)、如果要使用babel-core 6,需要安装babel-loader@7的版本。使用命令npm uninstall babel-loader ,然后使用
npm install babel-loader@7.1.5