kmcaloon / gatsby-plugin-groq

Gatsby plugin for using GROQ in place of GraphQL
MIT License
36 stars 2 forks source link

busted in Typescript? #7

Open EricWVGG opened 4 years ago

EricWVGG commented 4 years ago

When I try yarn develop with my index file named index.tsx, I get this error:

warn Error parsing file: /Users/wvgg/projects/franklyn/frontent.groq/src/pages/index.tsx

Works fine if I rename to index.jsx

I had to abandon using this plugin as I'm in a bit of a hurry, but my gawd, I was able to do in 20 lines of groq what took 70 in graphql… what a disaster of a spec…

kmcaloon commented 4 years ago

Hey Eric, sorry for the delay. Ok let me take a look and I'll fix this in the next release.

I was able to do in 20 lines of groq what took 70 in graphql YES. Sanity needs to use this as their slogan and start evangelizing for groq.

lindsaybloomsonos commented 3 years ago

@kmcaloon I am also experiencing the same issue in TypeScript. Is there an update on this issue?