解决方案:使用错误边界:import React, { Component } from 'react'//错误边界//https://zh-hans.reactjs.org/docs/error-boundaries.html#gatsby-focus-wrapperexport default class ErrorBoundary extends Component { constructor(props) { super(props); this.state = { error: null, e...[继续阅读]