11 Replies
thanks
@adityapimpalkar I have created this issue to track invetigation, can you assign of it? https://github.com/twentyhq/twenty/issues/5645 Cheers
GitHub
yarn nx run twenty-chrome-extension:"graphql:generate" not working ...
Error Error 0: Unknown type "CompanyCreateInput". at /Users/charles/dev/twenty/twenty/packages/twenty-chrome-extension/src/graphql/company/mutations.ts:2:37 Error 1: Cannot query field &q...
We are seeing those errors because those queries require authentication
I think its best if we remove it from project.json and move it to package.json
the graphql-codegen is very rarely used even for the chrome extension
@martmull is it included in the CI build?
Don't know, the issue occured locally
Were you only running the
yarn nx run twenty-chrome-extension:"graphql:generate"
individually or something else?Side note: the new syntax to run a command on any package should be:
npx nx run package-name:command
(yarn nx run works in most case but sometimes doesn't)
fix raised @martmull -
https://github.com/twentyhq/twenty/pull/5649
Thanks Aditya, I've left a comment: https://github.com/twentyhq/twenty/pull/5649
@adityapimpalkar @charles I think I still have the issue on main, do I miss something?
you'll need to set a valid token in the code-gen
the chrome extension is making some assumptions on the worksapce schema that is not exposed if you are not connected
(on twenty-front we rely on useFindManyRecords and co so we don't have to do that)
(but it's too expansive at the moment to do the same in the extension)
ok