Hi, I’m Dung Huynh Duc . Nice to meet you.

About Me

I’m a full stack developer. I’m a fast learner and self-taught coder. I often take my time for researching and learning about hot and trending technology.


#TIL 15 - Fix Duplicate identifier 'LibraryManagedAttributes'

blog_hero_#TIL 15 - Fix Duplicate identifier 'LibraryManagedAttributes'

Hi there,

If you run into some issues like mine

8:06:15.242  	node_modules/@types/react-dom/node_modules/@types/react/index.d.ts(3068,14): error TS2300: Duplicate identifier 'LibraryManagedAttributes'.
18:06:15.242  	node_modules/@types/react-dom/node_modules/@types/react/index.d.ts(3132,13): error TS2717: Subsequent property declarations must have the same type.  Property 'input' must be of type 'DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>', but here has type 'DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>'.
18:06:15.247  	node_modules/@types/react/index.d.ts(3093,14): error TS2300: Duplicate identifier 'LibraryManagedAttributes'.

Here is the tip. What you need is run below command and push the yarn.log file to your repository.

npx yarn-deduplicate yarn.lock

Enjoy and have a nice day!