codel icon indicating copy to clipboard operation
codel copied to clipboard

frontend: yarn dev triggers graphql-codegen, causing problem

Open billylo1 opened this issue 1 year ago • 3 comments

Looks like it's related to prebuild and predev in package.json

Using yarn vite to start it up for now

billylo1 avatar Mar 24 '24 01:03 billylo1

Could you provide a little bit more info about the problem that you were facing? Terminal output would be helpful here.

semanser avatar Mar 26 '24 12:03 semanser

% yarn dev
yarn run v1.22.19
$ yarn codegen
$ graphql-codegen --config codegen.yml
[Error: ENOENT: no such file or directory, open '/Users/billylo/ai/codel/frontend/codegen.yml'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Users/billylo/ai/codel/frontend/codegen.yml'
}

billylo1 avatar Mar 27 '24 01:03 billylo1

It looks like it's trying to find the codegen file but failing to do so. Make sure you didn't delete the frontend/codegen.yml file accidentally. Also, you can try checking if you have permissions for this file using the command:

➜ ls -l frontend/codegen.yml
-rw-r--r--  1 semanser  staff  349 Mar 19 14:20 frontend/codegen.yml

semanser avatar Mar 28 '24 09:03 semanser

I am going to close this issue since we now have official Docker images that allow you to run Codel more easily. Let me know if you have any other questions!

semanser avatar Apr 04 '24 10:04 semanser