Hi there!
I am currently builiding my portfolio using Gatsby and Netlify deployment. However I have an issue when deploying, with the following error:
12:45:01 PM: error #85907 GRAPHQL
12:45:01 PM: There was an error in your GraphQL query:
12:45:01 PM: - Unknown argument 'relativePath'. Source: document `optBuildRepoSrcComponentsImageJs2969191536` file: `GraphQL request`
12:45:01 PM: File: src/templates/publisher.js
Here is the content of src/templates/publisher.js
:
import React from 'react';
import { graphql } from 'gatsby';
import Layout from '../components/layout';
import SEO from '../components/seo';
import ProjectPreview from '../components/project-preview';
import styles from '../pages/index.module.css';
const PublisherTemplate = ({ data }) => (
<Layout>
<SEO title={data.strapiPublisher.name} />
<h1>{data.strapiPublisher.name}</h1>
<ul className={styles.grid}>
{data.strapiPublisher.projects.map(node => (
<li key={node.id} className={styles.item}>
<ProjectPreview {...node} />
</li>
))}
</ul>
</Layout>
);
export default PublisherTemplate;
export const query = graphql`
query PublisherTemplate($id: String) {
strapiPublisher(id: { eq: $id }) {
id
name
projects {
id
slug
title
date
link
featured_image {
childImageSharp {
fluid(maxWidth: 600) {
...GatsbyImageSharpFluid
}
}
}
}
}
}
`;
Here is the entire project: GitHub - TomFevrier/portfolio: Portfolio
Environment
-
System:
- OS: Linux 4.15 Ubuntu 18.04.3 LTS (Bionic Beaver)
- CPU: (4) x64 Intel(R) Core™ i5-7400 CPU @ 3.00GHz
- Shell: 5.4.2 - /usr/bin/zsh
-
Binaries:
- Node: 10.16.3 - /usr/bin/node
- npm: 6.9.0 - /usr/bin/npm
-
Languages:
- Python: 2.7.15+ - /usr/bin/python
-
Browsers:
- Firefox: 69.0.1
-
npmPackages:
- gatsby: ^2.13.73 => 2.13.73
- gatsby-image: ^2.2.10 => 2.2.10
- gatsby-plugin-manifest: ^2.2.6 => 2.2.6
- gatsby-plugin-offline: ^2.2.7 => 2.2.7
- gatsby-plugin-react-helmet: ^3.1.4 => 3.1.4
- gatsby-plugin-sharp: ^2.2.13 => 2.2.13
- gatsby-plugin-transition-link: ^1.12.4 => 1.12.4
- gatsby-source-filesystem: ^2.1.11 => 2.1.11
- gatsby-source-strapi: 0.0.9 => 0.0.9
- gatsby-transformer-sharp: ^2.2.7 => 2.2.7
-
npmGlobalPackages:
- gatsby-cli: 2.4.8
Any idea about what could go wrong? Thank you very much.