- The recently updated @types/react@18 major version has changed component definitions to remove having children as a prop by default. This causes errors if you have multiple copies of @types/react in your project. To fix this, tell your package manager to resolve @types/react to a single version. OR Type '{}' is not assignable to type 'ReactNode’
-
NPM v 8.
You can use
[overrides](https://docs.npmjs.com/cli/v8/configuring-npm/package-json)
like so:{ "overrides": { "@types/react": "^18.0.0"
-
}