Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
getPluginByName fails unexpectedly when plugin is not prefixed with @… (
#8097) * getPluginByName fails unexpectedly when plugin is not prefixed with @graphql-codgen/ We've been finding that our error code thrown is not `MODULE_NOT_FOUND` but rather `ERR_MODULE_NOT_FOUND` leading to codegen cli throwing and failing plugin load when trying the first plugin option. Since the error returned isn't `MODULE_NOT_FOUND`. As small double check here by adding the || `ERR_MODULE_NOT_FOUND` should account for that case. IMO this is a small but pretty urgent fix as it could be incorrectly throwing in some environments. I don't personally know the cause for the different error code, but our repo is via Vite / Node 17 and is ESM based. * Oopsie, need && * Create green-dogs-wait.md
- Loading branch information
32c1560
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
graphql-code-generator – ./
graphql-code-generator-theguild.vercel.app
graphql-code-generator-git-master-theguild.vercel.app
graphql-code-generator.vercel.app
graphql-code-generator.com
www.graphql-code-generator.com
www.graphql-codegen.com
graphql-codegen.com