Hello I am using the portfolio template provided and having issues when running Gatsby Develop. I’ve develop the sock store before with no issues as I am learning Gatsby. Thank you for your help!
UNHANDLED REJECTION Cannot read property ‘allDatoCmsWork’ of undefined
TypeError: Cannot read property ‘allDatoCmsWork’ of undefi ned
That’s fine, if you don’t set the DATO_API_TOKEN you’ll get a different error on the endpoint.
Your error means that you don’t have a model in your schema with that API key, meaning the name of the model that gets exposed to the API. Can you double check if you have a “Work” model with a “work” API key?
I have followed the instructions and inserted my read only key inside my .env file . However I still get “UNHANDLED REJECTION Cannot read property ‘allDatoCmsWork’ of undefined”. So like this: