【问题标题】:typescript error with styled components css function样式化组件css函数的打字稿错误
【发布时间】:2020-05-06 16:33:55
【问题描述】:

我在使用 styled-components 中的 CSS 函数时收到此错误 { expected ts(2322)

就像这里显示的那样:

将模板文字放在一行时,错误消失了!

有人知道是什么原因造成的吗?

【问题讨论】:

    标签: typescript styled-components


    【解决方案1】:

    这是由 vscode 扩展引起的。 禁用扩展解决了问题!

    【讨论】:

      猜你喜欢
      • 2020-08-02
      • 2019-06-19
      • 2021-06-07
      • 2021-03-13
      • 2018-02-09
      • 2020-06-27
      • 2021-11-03
      • 2021-08-03
      • 2021-03-04
      相关资源
      最近更新 更多