Build not working
Hey folks,
I created a new project today using
npm create refine-app@latest
so I have following versions:
I'm using vite and antd with yarn.
I can run yarn dev
without any issues but if I try running yarn build
I get following issue:
Any ideas? I also tried core-version 4.28.1, 4.27.0 but this doesn't helped.5 Replies
Hi @faulratte. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Hmm, I don't know enough to give you a confident answer yet. However, based on the information provided, it seems like there might be an issue with the TypeScript configuration or the package dependencies in your project.
One possible solution could be to try reinstalling your
node_modules
. Here are the steps you can follow:
1. Remove node_modules
folder
2. Remove package-lock.json
file
3. Run npm install
If the issue persists, you might want to check your tsconfig.json
file and ensure it's configured correctly.
Also, ensure that all your refine packages are up-to-date. You can update them using the refine CLI update
command:
If none of these solutions work, I would recommend reaching out to the refine community or checking the refine documentation (https://refine.dev/docs) for more information.
----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon:
----------------------<@266947612723118082> kapa.ai is still learning and improving, please let us how it did by reacting below
rival-black•14mo ago
I already tried both of your suggestions, but it did not help. @kapa.ai
Let me check the knowledge base for you. One moment! :books:
----------------------
I'm sorry to hear that the issue persists. Unfortunately, based on the information provided in the extracts, I don't have enough information to provide a more specific solution to your problem.
It seems like the issue is related to TypeScript not being able to find the module 'src/interfaces'. This could be due to a variety of reasons such as incorrect path, missing dependencies, or TypeScript configuration issues.
I would recommend checking the following:
- Ensure that the path 'src/interfaces' exists in your project and it is correctly referenced in your code.
- Check your
tsconfig.json
file and ensure that the baseUrl
and paths
are correctly set.
- Try installing the latest versions of react
and react-dom
as suggested in the refine documentation (https://refine.dev/docs/api-reference/antd/migration-guide/v4-to-v5):
If the issue still persists, I would recommend reaching out to the refine community or checking the refine documentation (https://refine.dev/docs) for more information.
----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon:
----------------------<@266947612723118082> kapa.ai is still learning and improving, please let us how it did by reacting below