экспорт «catchError» не был найден в «rxjs», когда целью tsconfig.json является ES2020 в angular 14
Я обновил свой проект библиотеки angular до angular 14, и пока я создаю свое приложение, я получаю следующую ошибку
Команда
ng build --base-href /home/ --configuration production
ОШИБКА:
/node_modules/@rcis/common/fesm2020/rcis-common.mjs:2000:39-51 - Error: export 'catchError' (imported as 'catchError$1') was not found in 'rxjs'
и когда я меняю цель в tsconfig.json с ES2020 на ES2015, все работает нормально.
код tsconfig.json -
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"downlevelIteration": true,
"importHelpers": true,
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"module": "esnext",
"moduleResolution": "node",
"experimentalDecorators": true,
"target": "ES2020", //if I change ES2015 it works fine
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2018",
"dom"
]
}
}
Что мне нужно внести изменения, чтобы работать с catchError с ES2020 в angular 14. Любая помощь будет высоко оценена.