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 initialising the index page

See original GitHub issue

Thank you so much for making the prismic starter. I was trying to develop the site on my own for the first time. I have already setup:

  • Prismic Account with API Token
  • Created all types of content on Prismic.io
  • Successfully to retrieve data via localhost:8000/___graphql

I have successfully completed gatsby-develop command, but it appears empty in the browser. Console indicated the following errors.

Failed prop type: The prop `data` is marked as required in `Index`, but its value is `undefined`.
Uncaught TypeError: Cannot read property 'homepage' of undefined
Uncaught TypeError: Cannot read property 'homepage' of undefined

Is there anything that is missing? I have created a repo to re-create the issue. For your conveninence, i have also added the token in the config file. https://github.com/sparklesam/dojo_20181019

Thanks a lot!

System: OS: macOS High Sierra 10.13.6 CPU: x64 Intel® Core™ i5-7267U CPU @ 3.10GHz Shell: 3.2.57 - /bin/bash Binaries: Node: 10.8.0 - /usr/local/bin/node npm: 6.2.0 - /usr/local/bin/npm Browsers: Chrome: 69.0.3497.100 Firefox: 63.0 Safari: 12.0 npmPackages: gatsby: ^2.0.24 => 2.0.27 gatsby-image: ^2.0.15 => 2.0.15 gatsby-plugin-emotion: ^2.0.5 => 2.0.5 gatsby-plugin-lodash: ^3.0.1 => 3.0.1 gatsby-plugin-manifest: ^2.0.5 => 2.0.5 gatsby-plugin-netlify: ^2.0.1 => 2.0.1 gatsby-plugin-offline: ^2.0.6 => 2.0.7 gatsby-plugin-react-helmet: ^3.0.0 => 3.0.0 gatsby-plugin-sharp: ^2.0.7 => 2.0.7 gatsby-plugin-sitemap: ^2.0.1 => 2.0.1 gatsby-plugin-typography: ^2.2.0 => 2.2.0 gatsby-source-prismic: ^2.0.0 => 2.0.0 gatsby-transformer-sharp: ^2.1.4 => 2.1.4 npmGlobalPackages: gatsby-cli: 1.1.58

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sparklesamcommented, Oct 21, 2018

Yes it works! Thanks so much for your help!

0reactions
LekoArtscommented, Oct 21, 2018

Ok, I know what’s causing this issue: Your test post only contains a “text” slice but it has to have also all the other slices. Otherwise Gatsby won’t build the schema. I’ll add a note about that in the instructions (that you have to use every slice at least one time)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gatling: Web Socket Open and Initialization Index page is ...
When I'm initializing(POST INDEX PAGE) my index page, it is giving me the following error. KO bodyString.find.transform.exists failed, ...
Read more >
Re-index error: Cannot initialize the indexer process
I got this error while trying to reindex the Product Prices index after installing Organic Internet's Simple Configurable Products extension ...
Read more >
[BUG] 'Index Queue Initialization' runs into an error in ...
Go to Modul 'Index Queue'; Click on 'Clear Index Queue'; Check on 'pages, news, etc' at Index Queue Initialization -> Click on 'Queue...
Read more >
Could not execute full-text query. Please initialize the index ...
When I search any product with article number all the time I am getting the same error at top the page saying "Could...
Read more >
Troubleshooting
ERROR com.ibm.team.jfs - CRJZS5821E The RDF index at <path to ... The DCC application appears to be stuck on initializing.
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