kmcaloon / gatsby-plugin-groq

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

Error occurred when building on Gatsby Cloud #3

Closed viperfx closed 4 years ago

viperfx commented 4 years ago

Hi there,

It me again. I happened to be trying out gatsby cloud to check out the sanity live preview and noticed that the build had an error related to this plugin.

"gatsby-plugin-groq" threw an error while running the resolvableExtensions lifecycle: ENOENT: no such file or directory, mkdir 'undefined/public/static/groq' 26 | fs.rmdirSync( GROQ_DIR, { recursive: true } ); 27 | } > 28 | fs.mkdirSync( GROQ_DIR ); | ^ 29 | 30 | // Cache fragments. 31 | const fragmentsDir = !! plugin.fragmentsDir ? path.join( ROOT, plugin.fragmentsDir ) : null;

Just thought I would let you know.

kmcaloon commented 4 years ago

Nice, keep these coming! It really helps. Just published a new release when you get a chance can you upgrade and check to see if that fixes it?

viperfx commented 4 years ago

Yep that works! Thanks.