Fix TS2300 Duplicate identifier error in TypeScript with React

preview_player
Показать описание

In this video we will be fixing:
error TS2300: Duplicate identifier 'LibraryManagedAttributes'
error TS2717: Subsequent property declarations must have the same type.

*My FREE programming apps:*

*My FREE TypeScript Course:*

Timeline:
00:00 Fixing error TS2300 and TS2717
12:23 Location of declaration files
14:22 Finding declaration files

Resources:

Follow TypeScript TV:

Hashtags:
#TypeScript #JavaScript #React
Рекомендации по теме
Комментарии
Автор

This is why I can't stand using JS/TS: more time debugging the package manager than producing product. Stuff of nightmares.

nomasprime
Автор

Remove your typings lines, run yarn, add your typings lines back, run yarn again (see 12:23 for more info). There, I saved you 15+ minutes of your life ;)

I'd still recommend watching the first few minutes of the video to understand the problem though ... just don't keep watching unless you want to go down a rabbit hole of explanation.

hungryhobbit
visit shbcf.ru