node_modules
after installing the graphql codegen iam facing this error on both of tsconfig.json file on the core and antd files that are inside @refinedev file
also Prettier doesnt work because of that
How i can fix that?
![No description](https://cdn.answeroverflow.com/1206370055038701568/Screenshot_2024-02-11_234203.png)
2 Replies
Hi @𝐎𝐮𝐬𝐬𝐚𝐦𝐚. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Based on the information provided in the extracts, it seems like you're encountering an issue with the
node_modules
folder and tsconfig.json
file after installing the GraphQL codegen. Here are a few steps you can try to resolve the issue:
1. Check your project setup: Ensure that you haven't accidentally moved any files or folders. The tsconfig.json
file shouldn't be in your node_modules
folder (source (https://discord.com/channels/837692625737613362/1201713580463112213)).
2. Reinstall your packages: If the issue persists after checking your project setup, try reinstalling all your packages. This can sometimes resolve issues with dependencies (source (https://discord.com/channels/837692625737613362/1201713580463112213)).
3. Clear your npm cache and reinstall dependencies: If the issue still persists, you can try to remove the node_modules
folder and the package-lock.json
file, then run npm install
again. This will clear your npm cache and reinstall all your dependencies (source (https://refine.dev/docs/ui-integrations/ant-design/migration-guide#compile-errors)).
4. Update React and ReactDOM: If the issue still persists, you can try updating React and ReactDOM to their latest versions (source (https://refine.dev/docs/ui-integrations/ant-design/migration-guide#compile-errors)).
If none of these steps resolve your issue, it might be helpful to provide more specific details about the error messages you're seeing. This could help in identifying the root cause of the problem.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@673972382049763487> kapa.ai is still learning and improving, please let us know how it did by reacting below