react-uwp icon indicating copy to clipboard operation
react-uwp copied to clipboard

Interface 'CheckBoxProps' cannot simultaneously extend types 'DataProps' and 'HTMLAttributes<HTMLDivElement>'. Named property 'defaultChecked' of types 'DataProps' and 'HTMLAttributes<HTMLDivElement>' are not identical.

Open eightHundreds opened this issue 7 years ago • 5 comments

Problem description

使用create-react-app --scripts-version=react-scripts-ts创建的空项目 使用readme的代码

编译时出现的问题

 "dependencies": {
    "react": "^16.2.0",
    "react-dom": "^16.2.0",
    "react-scripts-ts": "2.10.0",
    "react-uwp": "^1.1.8"
  },
  "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.0.1",
    "@types/node": "^9.3.0",
    "@types/react": "^16.0.34",
    "@types/react-dom": "^16.0.3"
  }

eightHundreds avatar Jan 14 '18 12:01 eightHundreds

Is there a workaround for this issue?

ralexand56 avatar Apr 20 '18 07:04 ralexand56

no,type declaration document(*.d.ts) of this project is wrong.

i gave up create-react-app

eightHundreds avatar Apr 20 '18 12:04 eightHundreds

Thanks for the response. So is this a create react app issue or a react-uwp issue?

ralexand56 avatar Apr 20 '18 13:04 ralexand56

Hopefully someone will let users know when this will be usable in typescript projects. They really should put a disclaimer saying that typescript definitions are messed up.

ralexand56 avatar Apr 23 '18 21:04 ralexand56

tsconfig.json { "compilerOptions": { ... "skipLibCheck": true } }

zipzou avatar May 07 '18 07:05 zipzou