0
<link rel="stylesheet" href="plugins/bootstrap/bootstrap.min.css">

<link rel="stylesheet" href="plugins/owl-carousel/owl.carousel.css">
<link rel="stylesheet" href="plugins/magnific-popup/magnific-popup.css">
<link rel="stylesheet" href="css/style.css">

this is what the part of the code that throughs me the error just like for css I get error for all the plugins like bootstrap, owl-carousel, magnific-popup

Anirudh J
  • 1
  • 1
  • You would need to show your project structure for anyone to help. Basically, we don't put the stylesheets directly in the index.html file, but reference it in the `anguar.json` file. Check this : https://angular.io/guide/workspace-config#style-script-config – Alain Boudard Jul 04 '22 at 13:42

1 Answers1

0

You can move all the CSS files to src/assets/css/ and then add these codes in angular.json

"styles": [
      "src/assets/css/style.css",
      "src/assets/css/plugins/owl-carousel/owl.carousel.css",
      "src/assets/css/plugins/magnific-popup/magnific-popup.css",
    ]

That could fix the problem.
Another solution could help: In your file login.component.ts add

  styleUrls: ['./login.component.css', './Your-Path/Your-File.css']
Cid Santos
  • 11
  • 2