npm执行webpack-dev-server时报错,如下图:
webpack.config.js相关配置如下:
{test:/(\.jsx|\.js)$/,
use:{loader:"babel-loader",
options:{presets:["react","latest"]}},
exclude: "/node_modules"
},
babel babel-core babel-loader babel-preset-react babel-preset-latest 已全部安装
实际上npm测试发现babel-helpers已经自动安装了
把node_modules删掉重新安装试下