Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Subsequent property declarations must have the same type - Compilation error #313

@slashburn

Description

@slashburn

Is this a bug report?

yes

Environment

  1. npm ls react-scripts-ts (if you haven’t ejected):
    react-scripts-ts@2.15.1
  2. node -v: 9.10.1
  3. npm -v: 5.6.0
  4. yarn --version (if you use Yarn): 1.3.2

Then, specify:

  1. Operating system: macOS Sierra 10.12.6
  2. Browser and version (if relevant): Chrome Version 65.0.3325.181 (Official Build) (64-bit)

Steps to Reproduce

  1. npm install -g create-react-app
  2. create-react-app my-app --scripts-version=react-scripts-ts
  3. cd my-app/
  4. npm start

Expected Behavior

Start a minimal application

Actual Behavior

Boilerplate page will not show up.
Instead I get the following error message:

path-to-project/node_modules/@types/react/index.d.ts
(3566,13): Subsequent property declarations must have the same type. Property 'a' must be of type 'DetailedHTMLProps<AnchorHTMLAttributes, HTMLAnchorElement>', but here has type 'DetailedHTMLProps<AnchorHTMLAttributes, HTMLAnchorElement>'.

Package.json looks like this

{
  "name": "youtube-react",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "react": "^16.3.2",
    "react-dom": "^16.3.2",
    "react-scripts-ts": "2.15.1"
  },
  "scripts": {
    "start": "react-scripts-ts start",
    "build": "react-scripts-ts build",
    "test": "react-scripts-ts test --env=jsdom",
    "eject": "react-scripts-ts eject"
  },
  "devDependencies": {
    "@types/jest": "^22.2.3",
    "@types/node": "^9.6.6",
    "@types/react": "^16.3.12",
    "@types/react-dom": "^16.0.5",
    "typescript": "^2.8.3"
  }
}

Reproducible Demo

Please follow the instructions in "Steps to Reproduce"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy