账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    JSX 配置异常
    40
    0
    ## .babelc 文件配置{"presets": [ [ "@babel/preset-react", { "pragma": "dom", // default pragma is React.createElement (only in classic runtime) "pragmaFrag": "DomFrag", // default is React.Fragment (only in classic runtime) "throwIfNamespace": false, // defaults to true "runtime": "classic" // defaults to classic // "importSource": "custom-jsx-library" // defaults to react (only in automatic runtime) } ], ],}## webpack 配置rules: [ { test: /\.jsx?$/, use: { loader: 'babel-loader', options: { presets: [ "@babel/preset-react", "@babel/preset-env" ] } }, exclude: [ resolve('public'), resolve('node_modules'), ], include: [resolve('src')], },]## 这个是报错You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders| }|> ReactDOM.render(<Index />, document.getElementById('app'));
    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 看看吧 普通会员 1楼
      502 Bad Gateway

      502 Bad Gateway


      nginx
    更多回答
    网站公告
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部