Angular 7 “expected 'styles' to be an array of strings”

前端 未结 6 1745
借酒劲吻你
借酒劲吻你 2021-01-07 23:53

I am trying to run my server and have my app.component.html load on localhost:8000. Instead, I am receiving this error

compiler.js:7992 Uncaught Error

6条回答
  •  广开言路
    2021-01-08 00:48

    Stylesheets which are referenced in your angular.json's styles[] cannot be referenced in a Component's styleUrls[] decorator.

    Make sure that you are not referencing ./app.component.css in both files.

提交回复
热议问题