如何解决为什么这项工作没有意义的构造函数和super?
49 | export default class Contact extends Component {
50 | constructer(props) {
> 51 | super(props);
| ^
52 |
53 | this.state = {
54 | dropdownMan: "dropdownClosed",
无法编译。
./ src / components / pages / contact.js模块构建失败(来自 ./node_modules/babel-loader/lib/index.js):SyntaxError: C:/用户/ Fastic的win10专业版/桌面/口哨 编码/应用程序/Lebaron-Galeana-React-FE/src/components/pages/contact.js: 在类构造函数之外的super()(51:4)
解决方法
请检查cd C:/Users/Username/Desktop
cd node-service-1 && bash -c "source .env && npm run start" && cd -
的拼写,您那里有错字)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。