Skip to content

[Bug]: Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “^17” #3857

Closed
@Redirts

Description

Is there an existing issue for this?

  • I have searched the existing issues and my issue is unique
  • My issue appears in the command-line and not only in the text editor

Description Overview

I am getting this Warning message:

Warning: React version specified in eslint-plugin-react-settings must be a valid semver version, or "detect"; got “^17”

I have a .eslintrc file with this setup:

"settings": {
"react": {
"version": "detect"
},

Expected Behavior

This plugin should be able to cope with carets which are part of the semver specification

eslint-plugin-react version

v7.37.2

eslint version

v8.57.0

node version

v20.10.0

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions