Skip to content

2 Copies of @types/react conflicting #8

@BraidenCutforth

Description

@BraidenCutforth

Compile Error:

Interface 'Element' cannot simultaneously extend types 'ReactElement<any>' and 'ReactElement<any>'. Named property 'type' of types 'ReactElement<any>' and 'ReactElement<any>' are not identical.

There is a bug reported here.
There are some solutions there that will work temporarily.

Temp Solution

From the link above:

  1. Run npm install
  2. Remove the @types\react folder from node_modules
  3. Run npm start

The issue should be gone now.

Solution:

I believe the react-scripts-ts just needs to be updated but I could be wrong. There are breaking changes in the update so we must go through the changlogs and see how this might affect the repo.

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions