当我在Gatsby中创建类组件时,收到错误消息:
TypeError:无法读取未定义的属性“ prototype”
代码如下:
Slider.js
import React from 'react'
import { Link } from 'gatsby'
export default class Slider extends React.component {
render() {
return (
<div>
{/* <Slide /> */}
<div>
<h1>The New lorem</h1>
<p>Lorem ipsum </p>
<Link>View Lorem</Link>
</div>
</div>
)
}
}
答案 0 :(得分:0)
您的意思是def mvnFileName = System.properties['os.name'].toLowerCase().contains('windows') ? 'mvn.cmd' : 'mvn'
def mvnbuild = "$mvnFileName package".execute() // ...
大写React.Component
C