it-kamasutra / react-way-of-samurai

594 stars 342 forks source link

TypeScript error '=' expected. TS1005 #17

Open vsheva opened 3 years ago

vsheva commented 3 years ago

Failed to compile C:/Users/Viki/Documents/react-way-of-samurai/node_modules/@ant-design/icons/lib/components/AntdIcon.d.ts TypeScript error in C:/Users/Viki/Documents/react-way-of-samurai/node_modules/@ant-design/icons/lib/components/AntdIcon.d.ts(2,13): '=' expected. TS1005

1 | import * as React from 'react';

2 | import type { IconDefinition } from '@ant-design/icons-svg/lib/types'; | ^ 3 | import type { IconBaseProps } from './Icon'; 4 | import { getTwoToneColor, TwoToneColor, setTwoToneColor } from './twoTonePrimaryColor'; 5 | export interface AntdIconProps extends IconBaseProps {

abdulalloh1 commented 2 years ago

Failed to compile C:/Users/Viki/Documents/react-way-of-samurai/node_modules/@ant-design/icons/lib/components/AntdIcon.d.ts TypeScript error in C:/Users/Viki/Documents/react-way-of-samurai/node_modules/@ant-design/icons/lib/components/AntdIcon.d.ts(2,13): '=' expected. TS1005

1 | import * as React from 'react';

2 | import type { IconDefinition } from '@ant-design/icons-svg/lib/types'; | ^ 3 | import type { IconBaseProps } from './Icon'; 4 | import { getTwoToneColor, TwoToneColor, setTwoToneColor } from './twoTonePrimaryColor'; 5 | export interface AntdIconProps extends IconBaseProps {

Hello! Have you found solution for this problem?

IT-KAMASUTRA-DIMYCH commented 2 years ago

FIX:

npm install antd