I am also facing same kind of issue for Angular 14 and 15 I was using Angular cdk version 11.2.5 which was working fine but now when I have updated to Angular 16, it is breaking and showing runtime errors. i do not wish to update "@angular/cdk", "@angular/http", "@ng-bootstrap/ng-bootstrap" etc and want to use same version in Angular 16, How I can do that?
current package.json
{
"name": "proclaim-angular",
"version": "1.0.1",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve --configuration=development",
"start-vikings": "ng serve --configuration=development-vikings",
"start-dev": "ng serve --configuration=development",
"start-uat": "ng serve --configuration=uat",
"start-prod": "ng serve --configuration=devProd",
"build-angular": "ng build && gzipper --verbose ./dist",
"lint": "ng lint",
"post-build": "node ./post-build/post-build.js",
"gzipper": "gzipper",
"bundle-report": "webpack-bundle-analyzer dist/stats.json",
"prod-build": "ng build --configuration=production --aot false --build-optimizer=false && npm run post-build",
"stg-build": "ng build --configuration=stg --aot false --build-optimizer=false && npm run post-build",
"stg-vikings-build": "ng build --configuration=development-vikings --aot false --build-optimizer=false && npm run post-build",
"uat-build": "ng build --configuration=uat --aot false --build-optimizer=false && npm run post-build",
"aws-build": "ng build --configuration=aws --aot false --build-optimizer=false && npm run post-build"
},
"private": true,
"dependencies": {
"@angular-devkit/build-angular": "^16.2.16",
"@angular-devkit/core": "16.2.16",
"@angular/animations": "16.2.12",
"@angular/cdk": "11.2.5",
"@angular/common": "16.2.12",
"@angular/compiler": "16.2.12",
"@angular/core": "16.2.12",
"@angular/forms": "16.2.12",
"@angular/http": "7.2.15",
"@angular/localize": "^16.2.12",
"@angular/material": "11.2.5",
"@angular/platform-browser": "16.2.12",
"@angular/platform-browser-dynamic": "16.2.12",
"@angular/platform-server": "16.2.12",
"@angular/router": "16.2.12",
"@angular/service-worker": "16.2.12",
"@angular/upgrade": "16.2.12",
"@material-ui/core": "4.9.12",
"@material-ui/lab": "4.0.0-alpha.51",
"@ng-bootstrap/ng-bootstrap": "5.3.0",
"@nguniversal/common": "7.1.1",
"@nguniversal/express-engine": "7.1.1",
"@nguniversal/module-map-ngfactory-loader": "v7.1.1",
"@types/googlemaps": "3.30.7",
"@types/leaflet": "^1.9.0",
"@types/moment": "2.13.0",
"angular-2-dropdown-multiselect": "^1.9.0",
"angular-in-memory-web-api": "0.6.0",
"angular-ng-autocomplete": "2.0.1",
"angular2-csv": "0.2.5",
"angular2-moment": "1.6.0",
"angular2-notifications": "0.7.8",
"axios": "^0.27.2",
"bootstrap-icons": "1.0.0-alpha2",
"ckeditor": "4.12.1",
"core-js": "2.4.1",
"crypto-js": "^4.1.1",
"d3": "5.7.0",
"file-saver": "1.3.3",
"font-awesome": "4.7.0",
"google-maps-react": "^2.0.2",
"html2canvas": "^1.4.1",
"jasmine": "^3.4.0",
"js-cookie": "2.2.1",
"leaflet": "^1.9.3",
"moment": "^2.29.3",
"ng-block-ui": "1.0.0-beta.10",
"ng-http-interceptor": "3.1.2",
"ng-multiselect-dropdown": "^1.0.0",
"ng2-charts": "1.6.0",
"ng2-ckeditor": "1.2.3",
"ng2-pdf-viewer": "^9.0.0",
"ngx-cookie-service": "2.2.0",
"pdf-lib": "^1.17.1",
"powerbi-client": "2.6.5",
"react": "16.12.0",
"react-bootstrap": "1.0.1",
"react-dom": "16.12.0",
"react-js-pagination": "^3.0.2",
"react-router-dom": "5.1.2",
"react-toastify": "5.5.0",
"reactour": "1.18.0",
"rxjs": "6.6.6",
"rxjs-compat": "6.5.3",
"styled-components": "5.1.1",
"survey-angular": "^1.8.12",
"survey-angular-ui": "^1.12.3",
"survey-core": "^1.12.14",
"survey-creator": "^1.12.3",
"survey-creator-angular": "^1.12.3",
"survey-creator-core": "^1.12.14",
"tslib": "^2.0.0",
"zone.js": "~0.13.3"
},
"devDependencies": {
"@angular/cli": "^16.2.16",
"@angular/compiler-cli": "^16.2.12",
"@angular/language-service": "16.2.12",
"@types/node": "6.0.60",
"@types/react": "^17.0.1",
"@types/react-dom": "^16.9.5",
"@types/react-select": "^3.0.10",
"brotli-gzip-webpack-plugin": "^0.5.0",
"codelyzer": "^0.0.28",
"gzipper": "^3.4.1",
"node-sass": "^7.0.1",
"ts-node": "3.0.4",
"tslint": "~6.1.0",
"typescript": "~4.9.5",
"webpack-bundle-analyzer": "^4.5.0"
}
}