JedWatson / react-select

The Select Component for React.js
https://react-select.com/
MIT License
27.63k stars 4.13k forks source link

Error - [tsc] node_modules/react-select/dist/declarations/src/accessibility/index.d.ts(1,13): error TS1005: '=' expected. #5646

Closed sdooodly closed 1 year ago

sdooodly commented 1 year ago

This error comes up while running npm i for a web application with ts and react

node -v: 10.18.0 "react-select": "^5.7.3"

[19:29:17] Error - [tsc] node_modules/react-select/dist/declarations/src/accessibility/index.d.ts(1,13): error TS1005: '=' expected. [19:29:17] Error - [tsc] node_modules/react-select/dist/declarations/src/accessibility/index.d.ts(1,37): error TS1005: ';' expected. [19:29:17] Error - [tsc] node_modules/react-select/dist/declarations/src/index.d.ts(2,13): error TS1005: '=' expected. [19:29:17] Error - [tsc] node_modules/react-select/dist/declarations/src/index.d.ts(2,32): error TS1005: ';' expected. [19:29:17] Error - [tsc] node_modules/react-select/dist/declarations/src/index.d.ts(11,1): error TS1128: Declaration or statement expected. [19:29:17] Error - [tsc] node_modules/react-select/dist/declarations/src/index.d.ts(11,13): error TS1005: ';' expected. [19:29:17] Error - [tsc] node_modules/react-select/dist/declarations/src/index.d.ts(11,49): error TS1005: ';' expected. [19:29:17] Error - [tsc] node_modules/react-select/dist/declarations/src/index.d.ts(13,1): error TS1128: Declaration or statement expected. [19:29:17] Error - [tsc] node_modules/react-select/dist/declarations/src/index.d.ts(13,13): error TS1005: ';' expected. [19:29:17] Error - [tsc] node_modules/react-select/dist/declarations/src/index.d.ts(13,45): error TS1005: ';' expected. [19:29:17] Error - [tsc] node_modules/react-select/dist/declarations/src/index.d.ts(14,1): error TS1128: Declaration or statement expected. [19:29:17] Error - [tsc] node_modules/react-select/dist/declarations/src/index.d.ts(14,13): error TS1005: ';' expected. [19:29:17] Error - [tsc] node_modules/react-select/dist/declarations/src/index.d.ts(14,78): error TS1109: Expression expected. [19:29:17] Error - [tsc] node_modules/react-select/dist/declarations/src/index.d.ts(14 Error - [tsc] node_modules/react-select/dist/declarations/src/index.d.ts(15,1): error TS1128: Declaration or statement expected.

sdooodly commented 1 year ago

This is a stub types definition. react-select provides its own type definitions, so you do not need this package installed. It is deprecated.

https://www.npmjs.com/package/@types/react-select