Skip to content

[react-script] jsx-key Missing "key" prop for element in array when there is no array/iteration #12095

Open
@shrijan00003

Description

@shrijan00003

Describe the bug

I have upgraded the package react-scripts from "4.0.3" to "5.0.0".

I have got the "Missing "key" prop for element in array" everywhere on my codebase.

I hope this is the issue with [email protected]

Did you try recovering your dependencies?

  • yes

Environment

Environment Info:

  current version of create-react-app: 5.0.0
  running from /<user_name>/.npm/_npx/69132/lib/node_modules/create-react-app

  System:
    OS: macOS 11.2.3
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Binaries:
    Node: 14.17.0 - ~/.nvm/versions/node/v14.17.0/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 6.14.13 - ~/.nvm/versions/node/v14.17.0/bin/npm
  Browsers:
    Chrome: 98.0.4758.109
    Edge: Not Found
    Firefox: 96.0
    Safari: 14.0.3
  npmPackages:
    react: ^17.0.2 => 17.0.2
    react-dom: ^17.0.2 => 17.0.2
    react-scripts: ^5.0.0 => 5.0.0
  npmGlobalPackages:
    create-react-app: Not Found

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions