Hey everyone, I’m stuck with a problem in my Gatsby project. I recently added the gatsby-source-figma plugin and configured it, but now my server won’t start. It keeps throwing an error about a missing type called ‘FigmaELLIPSE’.
Here’s the error message I’m getting:
Missing onError handler for invocation 'building-schema', error was 'Error: Type with name "FigmaELLIPSE" does not exists'. Stacktrace was 'Error: Type with name "FigmaELLIPSE" does not exists
I’ve double-checked my config, but I can’t figure out what’s causing this. Has anyone run into this issue before or know how to fix it? I’d really appreciate any help or suggestions on how to troubleshoot this. Thanks in advance!
I’ve encountered a similar issue with the gatsby-source-figma plugin before. From my experience, this error often occurs when there’s a mismatch between the plugin version and the Figma API version it’s trying to interact with.
Here’s what worked for me:
First, try updating the gatsby-source-figma plugin to the latest version. Sometimes, these type errors are resolved in newer releases.
If that doesn’t work, check your Figma file. Ensure that you’re not using any advanced or newly introduced Figma features that the plugin might not support yet.
Another thing to try is clearing your Gatsby cache. Run ‘gatsby clean’ before rebuilding your project. This can sometimes resolve schema-related issues.
Lastly, if none of the above helps, you might need to dive into the plugin’s source code and add the missing type definition manually. It’s not ideal, but it can be a temporary fix while waiting for an official update.
Hope this helps you resolve the issue!