This is my 404.tsx page component, Hi, I'm having a problem when building gatsby withgatsby build always getting this error, FYI I use axios-hooks , how to solve this please?, but it works fine while development
import React from 'react';
import { Container, Box, Typography, makeStyles, Grid, useMediaQuery, useTheme } from '@material-ui/core';
import { Helmet } from 'react-helmet';
import { Link } from 'gatsby';
import useAxios from 'axios-hooks';
export default function NotFound404() {
const [{ data: latestArticles = {}, loading: loadingLatestArticles }] = useAxios({
baseURL: process.env.REACT_APP_API_ENDPOINT,
url: 'latest-articles',
});
return (
<Box>
</Box>
);
}