Не удается прочитать свойство ‘range’ нулевой ошибки в CRA 4.0.0

#reactjs #create-react-app #eslint #react-scripts #babel-eslint

#reactjs #create-react-app #eslint #реагирующие скрипты #babel-eslint

Вопрос:

Я обновил Create React App (CRA) с 3.3.0 до 4.0.0, после этого обновления он выдает Не удается прочитать свойство ‘range’ с нулевым значением, я удалил модули узла и пряжу.заблокируйте и установите пакеты снова, но это не разрешилось.

Мой конфигурационный файл 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
    }
}
  

Я не добавил babel-eslint в package.json, поскольку он добавлен в CRA по умолчанию.

babel-eslint 10.1.0

Кто-нибудь может помочь с этим? Заранее спасибо

Комментарии:

1. вы также обновили eslint и другие зависимости разработчика?