angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.35k stars 6.74k forks source link

Angular 9 migration giving error related to CdkScrollableModule at ng serve #23878

Closed taskarsanjay closed 2 years ago

taskarsanjay commented 2 years ago

Reproduction

After migration to angular 9 I am started facing below issue in application which is related to CDK

Issue:

ERROR in Can't export value CdkScrollableModule in D:/arivis workspace/MSAuth/neuron-web/neuron-web-reactive/node_modules/@angular/cdk/scrolling.d.ts from MatDatepickerModule in D:/arivis workspace/MSAuth/neuron-web/neuron-web-reactive/node_modules/@angular/material/datepicker/index.d.ts as it was neither declared nor imported!

Environment

Package.Json: "dependencies": { "@angular/animations": "9.1.13", "@angular/cdk": "^6.3.1", "@angular/common": "9.1.13", "@angular/compiler": "9.1.13", "@angular/core": "9.1.13", "@angular/flex-layout": "^9.0.0-beta.29", "@angular/forms": "9.1.13", "@angular/material": "^9.2.4", "@angular/platform-browser": "9.1.13", "@angular/platform-browser-dynamic": "9.1.13", "@angular/platform-server": "^9.1.13", "@angular/router": "9.1.13", "@angular/service-worker": "9.1.13", "@auth0/angular-jwt": "^2.0.0", "@azure/msal-angular": "^1.1.2", "@netbasal/content-loader": "^1.1.0", "@nguniversal/common": "6.1.0", "@nguniversal/express-engine": "6.1.0", "@nguniversal/module-map-ngfactory-loader": "6.1.0", "@ngx-meta/core": "6.0.0", "@ngx-translate/core": "10.0.2", "@ngx-translate/http-loader": "3.0.1", "ang-jsoneditor": "1.7.1", "angular2-json-schema-form": "git+https://github.com/hamzahamidi/angular2-json-schema-form.git#build-angular-6", "bn-ng-idle": "0.0.2", "chart.js": "^2.7.3", "cookie-parser": "1.4.3", "core-js": "2.5.3", "d3": "^3.5.17", "emailjs-mime-codec": "^2.0.9", "express": "^4.16.3", "fine-uploader": "^5.16.2", "font-awesome": "^4.7.0", "fs": "0.0.1-security", "hammerjs": "^2.0.8", "html2canvas": "1.0.0-alpha.12", "html2pdf": "0.0.11", "jsoneditor": "~5.26.3", "jspdf": "~1.4.1", "mock-browser": "^0.92.14", "moment": "2.20.1", "msal": "^1.4.8", "ng2-file-upload": "^1.4.0", "ng2-pdfjs-viewer": "^6.0.2", "ngx-mat-select-search": "^1.4.2", "ngx-treeview": "^6.0.2", "node-sass": "^4.8.3", "primeng": "^6.1.6", "react-fine-uploader": "^1.1.1", "reflect-metadata": "0.1.12", "rxjs": "~6.6.7", "rxjs-compat": "~6.2.1", "save-svg-as-png": "^1.4.6", "transfer-webpack-plugin": "^0.1.4", "tslib": "^1.10.0", "web-animations-js": "^2.3.2", "xlsx": "^0.17.3", "xml-js": "^1.6.8", "xmlhttprequest": "^1.8.0", "zone.js": "~0.10.2" }, "devDependencies": { "@angular-devkit/build-angular": "~0.901.15", "@angular/cli": "^9.1.15", "@angular/compiler-cli": "9.1.13", "@angular/language-service": "9.1.13", "@types/hammerjs": "^2.0.40", "@types/jasmine": "3.10.1", "@types/jasminewd2": "2.0.10", "@types/node": "^10.17.60", "codelyzer": "^5.1.2", "compass-mixins": "^0.12.10", "jasmine-core": "3.2.1", "jasmine-spec-reporter": "4.2.1", "karma": "3.0.0", "karma-chrome-launcher": "2.2.0", "karma-cli": "1.0.1", "karma-coverage-istanbul-reporter": "2.0.2", "karma-jasmine": "1.1.2", "karma-jasmine-html-reporter": "1.3.1", "localstorage-polyfill": "^1.0.1", "nodemon": "1.18.3", "protractor": "5.4.0", "ssri": "6.0.0", "ts-node": "4.1.0", "tslint": "^6.1.2", "typescript": "3.7.5", "webpack": "^4.4.1", "webpack-cli": "^3.1.0", "webpack-node-externals": "1.7.2" }

crisbeto commented 2 years ago

It looks like you're using CDK version 6 and Material version 9. Can you try updating to CDK version 9?

taskarsanjay commented 2 years ago

Hi Angular/Components,

I tried with angular cdk 9.2.4 but no luck.

Regards, Sanjay Taskar

On Wed, 3 Nov 2021, 13:37 Kristiyan Kostadinov, @.***> wrote:

It looks like you're using CDK version 6 and Material version 9. Can you try updating to CDK version 9?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/angular/components/issues/23878#issuecomment-958727035, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ2QXZ5JQJCU25LBBSCZ2CDUKDUURANCNFSM5HIEHMZA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

jelbourn commented 2 years ago

@taskarsanjay there's not really enough information here for us to investigate what's going on; it sounds like it may be a local environment issue or mismatched dependencies.

crisbeto commented 2 years ago

Closing due to inactivity.

angular-automatic-lock-bot[bot] commented 2 years ago

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.