在index.js中使用jsx语法,webpack编译报错

#1

使用注释的createElement方法没报错

#2

原来是babel-loder @8的版本babel-core的版本@6不匹配,babel-loder 更新成@7的就编译成功了

1 Like