Duplicate identifier 'ResizeObserverCallback'

42 Views Asked by At

I got this errors when I use some Antd libraries such as table component, I have a Resize-observer file that I did by myself and its conflicting with this files, are there any ways to exclude the library resize-observer ?

error

1

There are 1 best solutions below

0
On

The error is quite explicit.

external-libs/ResizeObserver.d.ts and resize-observer-polyfill/src/index.d.ts are duplicate definitions.

You should delete either one on them, I'd advise you to remove your local definition.