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

About Me

With over a decade of experience under my belt as a full-stack developer, I've had the opportunity to spearhead project teams at tech startups in Vietnam, Thailand, Japan and Singapore. Additionally, I have worked as a freelance engineer for various companies based in Asia Pacific, Europe, and North America.

Presently, I serve the role of a Senior Full Stack Software Engineer at ACX. I am consistently committed to exploring and acquiring knowledge on emerging and popular technologies.

React
Typescript

#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'.
18:06:15.276

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!