Error with module gatsby-source-prismic-graphql

Hi all,
The installation of the module gatsby-source-prismic-graphql return an error :

Error: Cannot find module './third-party/gatsby-node'

I have seen there is an issue on the Github repo of the module : https://github.com/birkir/gatsby-source-prismic-graphql/issues/217, but no solution at the moment.

Do you have any idea to make it works ?
Thanks for help !

Steps to reproduce :

Install the Gatsby CLI
npm install -g gatsby-cli

Create a new site
gatsby new gatsby-site

Change directories into site folder
cd gatsby-site

Install the plugin
npm install --save gatsby-source-prismic-graphql

Add plugin to gatsby-config.js and configure
Following the documentation

Lauch development server
gatsby develop

1 Like

I had the same issue. This fix, further down in that thread, worked for me:

Hey Team,

Welcome to the community @baptiste!

I’m aware of this issue also, so I’m tagging @team-tech-support so hopefully someone can have a look at this.

We’ll keep you updated.

Thanks.

1 Like

Any update on this? I am getting the same issue when deploying to netlify.

Hey Stephen,

No update yet, we’ll update you here once we get the PR deployed.

Hello, still no update :’(

Hi any update here? Our team wants to use Prismic, but its just not working at all with gatsby.


Sorry to add on but any update or work around? I was planning to use prismic as my CMS for my new company website but this is preventing me from doing so.

Thank you,
TeaRock - James

1 Like

Hi @jackson & the @tearockca team,

Welcome to the community!

We had some issues with publishing permission to push our updates to the plugin, so we have made a fork so that we can be more reactive.

You can find it here:

You will have to uninstall the other, then install this one:
npm install --save @prismicio/gatsby-source-prismic-graphql
or
yarn add @prismicio/gatsby-source-prismic-graphql

and replace any references to the plugin:

  • In the Gatsby config
  • In the Gatsby Browser

My colleague @marc.mcintosh is now working on this.

Hopefully this should help for some of your cases.

Thanks.

Yes,
if there are any problems with the plugin, open up an issue on github and I’ll see what i can do :slight_smile:

Hi @marc.mcintosh , and thanks so much for taking this on.

I’ve opened up an issue here, just wondering what the long term direction is: https://github.com/prismicio/gatsby-source-prismic-graphql/issues/14

Can you provide any insight there?

Done :slight_smile:

This issue has been closed due to inactivity.