Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frontend: yarn dev triggers graphql-codegen, causing problem #5

Closed
billylo1 opened this issue Mar 24, 2024 · 4 comments
Closed

frontend: yarn dev triggers graphql-codegen, causing problem #5

billylo1 opened this issue Mar 24, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@billylo1
Copy link

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

Using yarn vite to start it up for now

@semanser semanser added the bug Something isn't working label Mar 24, 2024
@semanser
Copy link
Owner

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

@billylo1
Copy link
Author

billylo1 commented Mar 27, 2024

% 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'
}

@semanser
Copy link
Owner

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
Copy link
Owner

semanser commented Apr 4, 2024

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 semanser closed this as completed Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants