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
Closed
Description
Is this a bug report?
yes
Environment
npm ls react-scripts-ts
(if you haven’t ejected):
react-scripts-ts@2.15.1node -v
: 9.10.1npm -v
: 5.6.0yarn --version
(if you use Yarn): 1.3.2
Then, specify:
- Operating system: macOS Sierra 10.12.6
- Browser and version (if relevant): Chrome Version 65.0.3325.181 (Official Build) (64-bit)
Steps to Reproduce
- npm install -g create-react-app
- create-react-app my-app --scripts-version=react-scripts-ts
- cd my-app/
- 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
Labels
No labels