无法读取CRA 4.0.0中空错误的属性“范围”

问题描述

我已将Create React App(CRA)从3.3.0更新为4.0.0,此更新后抛出无法读取null的属性'range',我删除了节点模块, yarn.lock并再次安装了软件包,但仍未解决

我的Eslint配置文件

    "env": {
        "browser": true,"es6": true
    },"parser": "babel-eslint","extends": [
        "prettier","prettier/react"
    ],"plugins": [
        "prettier","react"
    ],"parserOptions": {
        "sourceType": "module"
    },"rules": {
        "indent": [
            "error",2,{ "SwitchCase": 1 }
        ],"linebreak-style": [
            "error","unix"
        ],"quotes": [
            "error","single"
        ],"prettier/prettier": [
            "error",{
                "printWidth": 80,"tabWidth": 2,"useTabs": false,"semi": true,"singleQuote": true,"trailingComma": "all"
            }
        ],"arrow-body-style": [
            2,"as-needed"
        ],"class-methods-use-this": 0,"lines-between-class-members": ["error","always"],"comma-dangle": [
            2,"always-multiline"
        ],"import/imports-first": 0,"import/newline-after-import": 0,"import/no-dynamic-require": 0,"import/no-extraneous-dependencies": 0,"import/no-named-as-default": 0,"import/no-webpack-loader-Syntax": 0,"import/prefer-default-export": 0,"max-len": 0,"newline-per-chained-call": 0,"no-confusing-arrow": 1,"no-console": "warn","no-use-before-define": 1,"prefer-template": 2
    }
}

我没有在package.json中添加babel-eslint,因为认情况下它是在CRA中添加的。

babel-eslint 10.1.0

有人可以帮忙吗? 预先感谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)