Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"export '_supportsShadowDom' was not found in '@angular/cdk/platform'

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?

like image 721
Majedur Avatar asked Oct 28 '19 05:10

Majedur


People also ask

Can not find module angular CDK scrolling?

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!

How do you check angular material is installed or not?

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.

How do I install a specific version of angular CDK?

In order to install a specific version of a package, we need to append the --save-exact flag to the npm install command. Copied!

What is CDK in angular?

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.


1 Answers

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.

like image 125
Jessica Rodriguez Avatar answered Oct 19 '22 02:10

Jessica Rodriguez