【Bug Fix】TypeScript 中 使用 ResizeObserver: TS2304: Cannot find name 'ResizeObserver'.
1、yarn add @types/resize-observer-browser -D
{
"extends": "./tsconfig.json",
"compilerOptions": {
"typeRoots": ["node_modules/@types"],
"types": ["resize-observer-browser"],
}
}
解决方案
https://stackoverflow.com/questions/60270925/finding-resizeobserver-with-typescript-in-angular-9