Типы для значков материалов и реагирующей ленты кажутся конфликтующими, свойство 'use' должно иметь тип 'SVGProps <SVGUseElement>', - PullRequest
0 голосов
/ 26 октября 2018

У меня следующие ошибки появляются в моей консоли при запуске запуска пряжи, и я хочу знать, как их очистить, не удаляя значки материалов, используемые с реагирующим ремнем? они невероятно затрудняют отладку с помощью консоли VSCode.

ERROR in /home/ReactProject/node_modules/@types/react/index.d.ts(2491,13):
TS2717: Subsequent property declarations must have the same type.  Property 'rect' must be of type 'SVGProps<SVGRectElement>', but here has type 'SVGProps<SVGRectElement>'.
ERROR in /home/ReactProject/node_modules/@types/react/index.d.ts(2492,13):
TS2717: Subsequent property declarations must have the same type.  Property 'stop' must be of type 'SVGProps<SVGStopElement>', but here has type 'SVGProps<SVGStopElement>'.
ERROR in /home/ReactProject/node_modules/@types/react/index.d.ts(2493,13):
TS2717: Subsequent property declarations must have the same type.  Property 'switch' must be of type 'SVGProps<SVGSwitchElement>', but here has type 'SVGProps<SVGSwitchElement>'.
ERROR in /home/ReactProject/node_modules/@types/react/index.d.ts(2494,13):
TS2717: Subsequent property declarations must have the same type.  Property 'symbol' must be of type 'SVGProps<SVGSymbolElement>', but here has type 'SVGProps<SVGSymbolElement>'.
ERROR in /home//ReactProject/node_modules/@types/react/index.d.ts(2495,13):
TS2717: Subsequent property declarations must have the same type.  Property 'text' must be of type 'SVGProps<SVGTextElement>', but here has type 'SVGProps<SVGTextElement>'.
ERROR in /home/ReactProject/node_modules/@types/react/index.d.ts(2496,13):
TS2717: Subsequent property declarations must have the same type.  Property 'textPath' must be of type 'SVGProps<SVGTextPathElement>', but here has type 'SVGProps<SVGTextPathElement>'.
ERROR in /home/ReactProject/node_modules/@types/react/index.d.ts(2497,13):
TS2717: Subsequent property declarations must have the same type.  Property 'tspan' must be of type 'SVGProps<SVGTSpanElement>', but here has type 'SVGProps<SVGTSpanElement>'.
ERROR in /home/ReactProject/node_modules/@types/react/index.d.ts(2498,13):
TS2717: Subsequent property declarations must have the same type.  Property 'use' must be of type 'SVGProps<SVGUseElement>', but here has type 'SVGProps<SVGUseElement>'.
ERROR in /home/ReactProject/node_modules/@types/react/index.d.ts(2499,13):
TS2717: Subsequent property declarations must have the same type.  Property 'view' must be of type 'SVGProps<SVGViewElement>', but here has type 'SVGProps<SVGViewElement>'.

больше включено, как это:

Subsequent property declarations must have the same type.  Property 'tbody' must be of type 'DetailedHTMLProps<HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>', but here has type 'DetailedHTMLProps<HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>'.
...