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
I'm using a query in nuxt.config.js to generate dynamic routes from Sanity content.
The code below works fine in v. 0.7.1. Stops working in 0.8.0 and above because the query is returning undefined, and nuxt generate fails as a consequence.
Version
module: 0.9.0, 0.8.0 (WORKS IN 0.7.1)
nuxt: 2.15.4
I'm using a query in nuxt.config.js to generate dynamic routes from Sanity content.
The code below works fine in v. 0.7.1. Stops working in 0.8.0 and above because the query is returning undefined, and
nuxt generate
fails as a consequence.Version
module: 0.9.0, 0.8.0 (WORKS IN 0.7.1)
nuxt: 2.15.4
Nuxt configuration
mode:
Nuxt configuration
What is expected?
await client.fetch(
*[_type == "page"]);
returns sanity content.What is actually happening?
await client.fetch(
*[_type == "page"]);
returns undefinedSteps to reproduce
basic nuxt install with config adjusted as above
Additional information
This same code works fine in module version 0.7.1. Fails in 0.8.0 and above because the sanity query is not returning any data.
Checklist
The text was updated successfully, but these errors were encountered: