question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Cannot find module 'gatsby/graphql'

See original GitHub issue

Hi Meng

I am on Chapter 10 on React for Designers course. After I installed gatsby-source-contentful plugin, and restarted my server the following error shows Error: Cannot find module 'gatsby/graphql'

My settings https://github.com/tridip1931/100DaysOfCode/blob/chapter10/react-for-designers/package.json

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

3reactions
krystianzuncommented, Aug 3, 2020

I found out that gatsby-starter-default provided in the course is created in Gatsby V1. That causes issues if certain plugins are installed.

I haven’t found an easy way to migrate the project made in Gatsby V1 to V2.

That’s why I recommend just starting from gatsby-starter-default made already in Gatsby V2 (e.g. this) and follow the course. When you install gatsby-source-contentful plugin everything will be working.

0reactions
joshhaaronncommented, Nov 6, 2020

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module 'gatsby/graphql` · Issue #8478 - GitHub
I am following the Transform Plugins part 6 of the tutorials on the Gatsby website. After I install npm install --save ...
Read more >
Error: Cannot find module 'gatsby-plugin-image/graphql-utils'
When I ran into this issue I found that adding the new package gatsby-plugin-image fixed it. The README for gatsby-source-contentful has a ...
Read more >
[ gatsby ] Error: Cannot find module 'gatsby/graphql' - dsin
Problem Solution install v1 instead of v2 ref : https://github.com/gatsbyjs/gatsby/issues/6560.
Read more >
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'.
Read more >
gatsby-source-graphql - npm
In your gatsby-config.js module.exports = { plugins: [ // Simple config, passing URL { resolve: "gatsby-source-graphql", ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found