0

i am making a web site in angular 13 with using Bootstrap 5 Laravel api etc .Here i use a share social media button for my pages. when i install ngx-sharebuttons"and install npm successfully updated. but importing ngx-sharebuttons module in app.module.ts and input the ng serve i got error like this "Module build failed" i will share my error in below image.please help.i am new in agular enter image description here

1 Answer 1

1

If you follow the guide on https://github.com/MurhafSousli/ngx-sharebuttons/wiki/Share-Button-Directive you see:

npm i ngx-sharebuttons @angular/cdk

This command installs @angular/cdk alongside ngx-sharebuttons. @angular/cdk is a dependency of ngx-sharebuttons. So in your case, try:

npm i @angular/cdk and then serve your app again. The error should disappear.

Edit We figured out more things to keep an eye on within the discussion:

  • make sure you install @angular/cdk to the same version as your other angular dependencies
  • make sure you use a compatible version of ngx-sharebuttons to your angular version. (v10 is for angular 13, v11 is for angular 14).
Sign up to request clarification or add additional context in comments.

7 Comments

i thinks its on the basis of material ?is it right?
I am not sure what you mean?
actually here above link using angular material. I m using bootstrp.so how to combine each other?
I dont read anything about material. Do you mean @angular/cdk?
yes i dont know about cdk
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.