create-react-app-typescript icon indicating copy to clipboard operation
create-react-app-typescript copied to clipboard

Typings error on start without any modifications

Open michelalbers opened this issue 6 years ago • 3 comments

Is this a bug report?

yes

Can you also reproduce the problem with npm 4.x?

yes

Which terms did you search for in User Guide?

Environment

[email protected] [email protected] [email protected] [email protected]

mac os X High Sierra

Steps to Reproduce

  1. create-creact-app example ---scripts-version=react-scripts-ts
  2. cd example/
  3. yarn start

Expected Behavior

Compile and show example page

Actual Behavior

(2236,19): Interface 'Element' cannot simultaneously extend types 'ReactElement<any>' and 'ReactElement<any>'.                         
Named property 'type' of types 'ReactElement<any>' and 'ReactElement<any>' are not identical. ```

michelalbers avatar Apr 20 '18 08:04 michelalbers

having the same issue.

mnadeau2 avatar Apr 26 '18 14:04 mnadeau2

Also having the same issue. Any updates?

josephfarina avatar Jun 28 '18 21:06 josephfarina

Sounds a bit similar to: https://github.com/wmonk/create-react-app-typescript/issues/313 https://github.com/wmonk/create-react-app-typescript/issues/341

Would you mind checking the output of npm ls @types/react for duplicates?

DorianGrey avatar Jun 29 '18 06:06 DorianGrey