【发布时间】:2020-02-04 15:32:31
【问题描述】:
我已经使用 typescript 创建了基本的 nextjs 应用程序 链接-https://github.com/zeit/next.js/tree/master/examples/with-typescript
我无法将 className 属性添加到任何元素。我遇到以下错误。 类型“IntrinsicAttributes & IntrinsicClassAttributes & Readonly & Readonly
我收到其他属性的类型错误,例如链接元素上的 rel。
【问题讨论】:
-
出现错误时提供代码示例
-
我附上了图片。我在浏览器中遇到同样的错误
标签: reactjs typescript next.js