使用 webpack 无法解析 jsx 语法 Module build failed

上传:易下雨 浏览: 22 推荐: 0 文件:PDF 大小:23.51KB 上传时间:2021-01-30 23:39:17 版权申诉
报错信息 大概意思:模块构建失败,无法解析 jsx. Module build failed: SyntaxError: /Users/yiming/Desktop/ReactTest/webpack2/app/main.js: Unexpected token webpack@v4 设置: webpack.config.js: module: { rules: [ { test: /\.jsx?$/, exclude: /node_modules/, use: { loader: babel-load
上传资源
用户评论