So, I'm experiencing that the prismic node is not available in my graphql explorer. I've tried a lot of different stuff, but I can't seem to get it to show up. I'm running Prismic with multiple locales, and have added and translate a couple of pieces of content.
ERROR #11321 PLUGIN
"@prismicio/gatsby-source-prismic-graphql" threw an error while running the createPages lifecycle:
So, I'm experiencing that the prismic node is not available in my graphql explorer. I've tried a lot of different stuff, but I can't seem to get it to show up. I'm running Prismic with multiple locales, and have added and translate a couple of pieces of content.
ERROR #11321 PLUGIN
"@prismicio/gatsby-source-prismic-graphql" threw an error while running the createPages lifecycle:
Unknown type "PRISMIC_SortPagey".
260 | }); 261 | _context.next = 10;
File: node_modules/gatsby-source-prismic-graphql/gatsby-node.js:262:32
Error: Unknown type "PRISMIC_SortPagey". GraphQL request:2:64 1 | 2 | query AllPagesQuery ($after: String, $lang: String, $sortBy: PRISMIC_SortPagey) { | ^ 3 | prismic {
Here's my package.json file: { "name": "gatsby-starter-default", "private": true, "description": "A simple starter to get up and developing quickly with Gatsby", "version": "0.1.0", "author": "Kyle Mathews mathews.kyle@gmail.com", "dependencies": { "gatsby": "^2.23.12", "gatsby-image": "^2.4.9", "gatsby-plugin-manifest": "^2.4.14", "gatsby-plugin-offline": "^3.2.13", "gatsby-plugin-react-helmet": "^3.3.6", "gatsby-plugin-sass": "^2.3.12", "gatsby-plugin-sharp": "^2.6.14", "gatsby-source-filesystem": "^2.3.14", "gatsby-source-prismic-graphql": "npm:@prismicio/gatsby-source-prismic-graphql@^3.6.10", "gatsby-transformer-sharp": "^2.5.7", "node-sass": "^4.14.1", "prop-types": "^15.7.2", "react": "^16.12.0", "react-dom": "^16.12.0", "react-helmet": "^6.1.0" }, "devDependencies": { "core-js": "^2.6.5", "prettier": "2.0.5" }, "keywords": [ "gatsby" ], "license": "0BSD", "scripts": { "build": "gatsby build", "develop": "gatsby develop", "format": "prettier --write \"*/.{js,jsx,ts,tsx,json,md}\"", "start": "npm run develop", "serve": "gatsby serve", "clean": "gatsby clean", "test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\" && exit 1" }, "repository": { "type": "git", "url": "https://github.com/gatsbyjs/gatsby-starter-default" }, "bugs": { "url": "https://github.com/gatsbyjs/gatsby/issues" } }
and my gatsby-config file: const { defaultLanguage, langs } = require("./prismic-config")
module.exports = { siteMetadata: { title:
Gatsby Prismic Starter
, description:Starter for Gatsby and Prismic to test if connection works
, author:@dnlmzw
, }, plugins: [ { resolve:gatsby-plugin-manifest
, options: { name:gatsby-prismic-starter
, short_name:starter
, start_url:/
, background_color:#663399
, theme_color:#663399
, display:minimal-ui
, icon:src/images/icon.png
, }, },gatsby-plugin-react-helmet
, { resolve:gatsby-source-filesystem
, options: { name:images
, path:${__dirname}/src/images
, }, },gatsby-transformer-sharp
,gatsby-plugin-sharp
, { resolve:gatsby-source-prismic-graphql
, options: { accessToken: process.env.PRISMIC_API_KEY, repositoryName: process.env.PRISMIC_REPO, defaultLang: defaultLanguage, langs, pages: [ { type: "Page", path: "/:lang?", match: "/:lang?/:uid", component: require.resolve("./src/templates/Page.js"), langs, }, ], }, }, ], }