We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here's a minimal repro: https://github.com/dallonf/sst-pothos-plugin-repro
It includes a straightforward custom Pothos plugin that doesn't actually do anything visible.
When running with npm run dev, I get this error:
npm run dev
✖ Pothos: Failed to extract schema: No plugin named myPlugin was registered
And looking at the generated out.mjs file, it indeed is missing the plugin registration, only including the constant name itself:
out.mjs
var pluginName = "myPlugin"; // packages/functions/src/graphql/builder.ts import SchemaBuilder2 from "@pothos/core"; // packages/functions/src/graphql/MyPlugin/index.ts var MyPlugin_default = pluginName; // packages/functions/src/graphql/builder.ts var builder = new SchemaBuilder2({ plugins: [MyPlugin_default] });
I would expect to be able to write custom Pothos plugins in an SST project!
The text was updated successfully, but these errors were encountered:
Not sure when we'll get to this because of Ion but happy to review PRs for it.
Sorry, something went wrong.
Out of curiosity, does this issue not exist in Ion?
We haven't really added Pothos support there yet.
No branches or pull requests
Here's a minimal repro: https://github.com/dallonf/sst-pothos-plugin-repro
It includes a straightforward custom Pothos plugin that doesn't actually do anything visible.
When running with
npm run dev
, I get this error:And looking at the generated
out.mjs
file, it indeed is missing the plugin registration, only including the constant name itself:I would expect to be able to write custom Pothos plugins in an SST project!
The text was updated successfully, but these errors were encountered: