You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 11, 2021. It is now read-only.
@julians300 Did you find a solution? Facing the same issue.
I have tried using the 3.4.0-beta.2 but that causes another error in my /templates files:
warn The GraphQL query in the non-page component ".../src/templates/page.js" will not be run.
Exported queries are only executed for Page components. It's possible you're
trying to create pages in your gatsby-node.js and that's failing for some
reason.
Template file page.js:
import React from 'react'
import { graphql } from 'gatsby'
const Page = ({ data }) => {
console.log(data)
return <div>Test</div>
}
export const query = graphql`
query($uid: String!, $lang: String!) {
prismic {
content(uid: $uid, lang: $lang) {
title
body {
... on PRISMIC_ContentBodyTest {
type
label
primary {
test_title
}
}
}
}
}
}
`
export default Page
My project works fine locally but when deploying to netlify I am getting js errors.
I followed this guide:
https://prismic.io/docs/reactjs/getting-started/prismic-gatsby
Here is the repo:
https://github.com/julians300/gatsby-test
Here is the project deployed to Netlify:
https://naughty-golick-713de1.netlify.com/
Any help getting Prismic to work with Netlify would be appreciated!
The text was updated successfully, but these errors were encountered: