You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a new webapp-lib using the command pnpm nx g @sb/tools:webapp-lib --directory webapp-libs mylib, the generated file mylib/graphql/codegen.ts contains an incorrect path reference. Specifically, the path is incorrectly set to webapp-lib-mylib instead of mylib.
This incorrect path results in the pnpm nx run webapp:graphql:generate-types:watch command not functioning as expected. It fails to regenerate documents and types related to the newly created webapp-lib, leading to potential issues in development and use of GraphQL queries and mutations within the library.
Steps to reproduce
Run the command to create a new webapp-lib: pnpm nx g @sb/tools:webapp-lib --directory webapp-libs mylib
Navigate to the generated file: <project-root>/packages/webapp-libs/mylib/graphql/codegen.ts
Observe the incorrect path reference within the file, which is set to webapp-lib-mylib instead of the expected mylib.
Run the command to generate GraphQL types: pnpm nx run webapp:graphql:generate-types:watch
Notice that the command does not regenerate documents and types related to the webapp-lib due to the incorrect path in codegen.ts.
Attempt to use GraphQL queries or mutations within the newly created webapp-lib.
Encounter issues in development due to missing or incorrect GraphQL types and documents that were not generated.
Describe the bug
When creating a new webapp-lib using the command
pnpm nx g @sb/tools:webapp-lib --directory webapp-libs mylib
, the generated filemylib/graphql/codegen.ts
contains an incorrect path reference. Specifically, the path is incorrectly set to webapp-lib-mylib instead of mylib.This incorrect path results in the
pnpm nx run webapp:graphql:generate-types:watch
command not functioning as expected. It fails to regenerate documents and types related to the newly created webapp-lib, leading to potential issues in development and use of GraphQL queries and mutations within the library.Steps to reproduce
pnpm nx g @sb/tools:webapp-lib --directory webapp-libs mylib
<project-root>/packages/webapp-libs/mylib/graphql/codegen.ts
webapp-lib-mylib
instead of the expectedmylib
.pnpm nx run webapp:graphql:generate-types:watch
webapp-lib
due to the incorrect path incodegen.ts
.webapp-lib
.System Info
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: