VS code CSS class selector not found with angular and bootstrap 5 beta

前端 未结 11 1879
陌清茗
陌清茗 2021-02-05 02:31

I\'m using bootstrap 5 with angular and I add style and script to angular.json but the problem in VS Code it does not recognize the bootstrap classes.

相关标签:
11条回答
  • 2021-02-05 03:10

    Reverted to v1.3.3 of 'HTML/CSS Support' extension until sorted

    0 讨论(0)
  • 2021-02-05 03:13

    first uninstall HTML CSS support and then reload it And i am 100% sure that it will work actually HTML CSS support sometime checks your HTML CSS code and give error if there is false positive

    0 讨论(0)
  • 2021-02-05 03:16

    Just turn off CSS validation in settings.json.

    0 讨论(0)
  • 2021-02-05 03:24

    I had the same problem. It turned out to be an issue with the same 'HTML/CSS Support' extension mentioned in this answer and this answer. It looks like there have been 7 different releases for that extension in the last few days. v1.3.3 seems to be the latest working version of the extension.

    0 讨论(0)
  • 2021-02-05 03:26

    Uninstall this extension named "HTML CSS Support" and then reload. It worked for me, I hope it would work for you as well.

    0 讨论(0)
  • 2021-02-05 03:27

    Issue with extension "HTML CSS Support" Uninstall it or use an older verions.

    0 讨论(0)
提交回复
热议问题