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 trying to use GROQ typegen in my Astro project, but it doesn't recognize the JSX-in-frontmatter syntax and mistakenly thinks its all errors, for example:
src/pages/about.astro: `import` can only be used in `import()` or `import.meta`. (2:0)
1 | ---
> 2 | import Layout from '../layouts/BlogPost.astro';
Using the same code in a standard JSX format produces expected results.
Describe the bug
I'm trying to use GROQ typegen in my Astro project, but it doesn't recognize the JSX-in-frontmatter syntax and mistakenly thinks its all errors, for example:
Using the same code in a standard JSX format produces expected results.
To Reproduce
Steps to reproduce the behavior:
sanity-typegen.json
to include.astro
files in thepath
search glob.sanity schema extract && sanity typegen generate
.Expected behavior
The types should generate without error.
Which versions of Sanity are you using?
Run
sanity versions
in the terminal and copy-paste the result here.What operating system are you using?
macOS 14.5
Which versions of Node.js / npm are you running?
Run
npm -v && node -v
in the terminal and copy-paste the result here.The text was updated successfully, but these errors were encountered: