https://github.com/elevatebart/vue-next-react-ts-conflict
repro for tsx with vue and react installed
https://github.com/elevatebart/vue-next-react-ts-conflict
Last synced: 2 months ago
JSON representation
repro for tsx with vue and react installed
- Host: GitHub
- URL: https://github.com/elevatebart/vue-next-react-ts-conflict
- Owner: elevatebart
- Created: 2020-04-22T21:29:13.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-11T11:32:18.000Z (about 4 years ago)
- Last Synced: 2025-02-13T15:34:55.979Z (4 months ago)
- Language: TypeScript
- Homepage:
- Size: 84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
# Conflict between React & Vue Next JSX typings
When loading both @types/react and vue-next beta 3, TSX never compiles. For projects who are trying to move from react to vue, it can be a great barrier of entry.
To run into the problem just run the following commands in a prompt
```sh
git checkout
npm ci
npm start
```When I do this, I read the following error:
```sh
node_modules/@types/react/index.d.ts:2966:19 - error TS2430: Interface 'IntrinsicElements' incorrectly extends interface 'NativeElements'.
Types of property 'symbol' are incompatible.
Type 'SVGProps' is not assignable to type 'ElementAttrs'.
Type 'SVGProps' is not assignable to type 'SVGAttributes'.
Types of property 'autoReverse' are incompatible.
Type 'Booleanish' is not assignable to type 'string | number'.
Type 'false' is not assignable to type 'string | number'.2966 interface IntrinsicElements {
~~~~~~~~~~~~~~~~~
```