I have install all necessary library to run angular app. But still build with error
"export '_supportsShadowDom' was not found in '@angular/cdk/platform'
I could not trace issues. What can I try next?
To solve the error "Module not found: Can't resolve '@angular/cdk/scrolling'", make sure to install the package by opening your terminal in your project's root directory and running the following command: npm i @angular/cdk and restart your IDE and development server. Copied!
Type npm -v in the terminal to check if npm is installed or not in our system. It displays the version of npm. Angular installations are easy with the help of Angular CLI. Visit https://cli.angular.io/ to get the reference of the command.
In order to install a specific version of a package, we need to append the --save-exact flag to the npm install command. Copied!
The Angular Component Dev Kit (CDK) is a library of predefined behaviors included in Angular Material, a UI component library for Angular developers. It contains reusable logic for many features that are used as common building blocks for the interfaces of Angular applications.
Try to install this version since Angular Material version is ^8.0.0:
install @angular/cdk 8.2.3
The version of Angular CDK must be lined up to the version of Angular Material.
Check this issue in github.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With