解決方案:使用錯(cuò)誤邊界:import React, { Component } from 'react'//錯(cuò)誤邊界//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...[繼續(xù)閱讀]