{"record":{"id":"ce1394c727d1bfe4","repo":"gatsbyjs/gatsby","slug":"gatsbypluginmissing","errorCode":"GatsbyPluginMissing","errorMessage":"gatsby-plugin-image is missing from your project.\nPlease install \"gatsby-plugin-image\".","messagePattern":"gatsby-plugin-image is missing from your project\\.\nPlease install \"gatsby-plugin-image\"\\.","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-source-contentful/src/gatsby-node.js","lineNumber":54,"sourceCode":"          pluginOptions.accessToken\n        )}\". Make sure to double check them!`\n\n        throw new Error(errorMessage)\n      }\n    })\n\n  return undefined\n}\n\nexport const onPreInit = async (\n  { store, reporter, actions },\n  pluginOptions\n) => {\n  // if gatsby-plugin-image is not installed\n  try {\n    await import(`gatsby-plugin-image/graphql-utils`)\n  } catch (err) {\n    reporter.panic({\n      id: CODES.GatsbyPluginMissing,\n      context: {\n        sourceMessage: `gatsby-plugin-image is missing from your project.\\nPlease install \"gatsby-plugin-image\".`,\n      },\n    })\n  }\n\n  // if gatsby-plugin-image is not configured\n  if (\n    !store\n      .getState()\n      .flattenedPlugins.find(plugin => plugin.name === `gatsby-plugin-image`)\n  ) {\n    reporter.panic({\n      id: CODES.GatsbyPluginMissing,\n      context: {\n        sourceMessage: `gatsby-plugin-image is missing from your gatsby-config file.\\nPlease add \"gatsby-plugin-image\" to your plugins array.`,\n      },","sourceCodeStart":36,"sourceCodeEnd":72,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/8b06340921ffdf23125a365b9c9923690cb62ce6/packages/gatsby-source-contentful/src/gatsby-node.js#L36-L72","documentation":"Error \"gatsby-plugin-image is missing from your project.\nPlease install \"gatsby-plugin-image\".\" thrown in gatsbyjs/gatsby.","triggerScenarios":"Thrown at packages/gatsby-source-contentful/src/gatsby-node.js:54 when the library encounters an invalid state.","commonSituations":"Occurs when gatsby-source-contentful is used without gatsby-plugin-image installed. Run `npm install gatsby-plugin-image` and add it to the plugins array in gatsby-config.js.","solutions":["Install the missing package: npm install gatsby-plugin-image (or yarn add gatsby-plugin-image).","Add \"gatsby-plugin-image\" to the plugins array in gatsby-config.js."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8b06340921ffdf23125a365b9c9923690cb62ce6","analyzedAt":"2026-08-13T02:36:21.405Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}