I have the same issue as in:
React typescript (2312,14): Duplicate identifier 'LibraryManagedAttributes'
and
TypeScript error: Duplicate identifier 'LibraryManagedAttributes'
But I just can't find any solution.
I already upgraded to the latest node/npm/yarn/typescript versions. Also tried downgrading. Nothing helps.
yarn build --verbose
yarn run v1.9.4
$ react-scripts-ts build --verbose
Creating an optimized production build...
Starting type checking and linting service...
Using 1 worker with 2048MB memory limit
ts-loader: Using typescript@3.0.3 and C:\dev\project\frontend\tsconfig.prod.json
Warning: member-ordering - Bad member kind: public-before-private
Failed to compile.
C:/dev/project/frontend/node_modules/@types/prop-types/node_modules/@types/react/index.d.ts
(2312,14): Duplicate identifier 'LibraryManagedAttributes'.
error Command failed with exit code 1.
--verbose
somehow doesn't give me more information.
As I can see LibraryManagedAttributes
is defined in:
node_modules/@types/react/index.d.ts
node_modules/@types/prop-types/node_modules/@types/react/index.d.ts
node_modules/@types/react-overlays/node_modules/@types/react/index.d.ts
- ....
Where is this coming from? How can I avoid that?
I want to find out where this error is coming from so that I can report it to the right entity but I don't know where to start.
What else can I try?