GraphQL generator imports prettier
but prettier is not declared as a dependency
#754
Closed
4 tasks done
Before opening, please confirm:
How did you install the Amplify CLI?
pnpm
If applicable, what version of Node.js are you using?
20
Amplify CLI Version
latest
What operating system are you using?
mac
Amplify Codegen Command
Not applicable
Describe the bug
https://github.com/aws-amplify/amplify-codegen/blob/main/packages/graphql-generator/src/utils/GraphQLStatementsFormatter.ts#L2
see title, this breaks with certain package managers (modern yarn, maybe pnpm, npm with "linked" install strategy)
Expected behavior
prettier is declared as a dependency of the workspace package
Reproduction steps
n/a
GraphQL schema(s)
# Put schemas below this line
Log output
Additional information
https://rushjs.io/pages/advanced/phantom_deps/#phantom-dependencies
The text was updated successfully, but these errors were encountered: