Cannot find module '@refinedev/core' or its corresponding type declarations.
Cannot find module '@refinedev/core' or its corresponding type declarations.
2 Replies
Hi @jakshire01. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
This error typically occurs when the module '@refinedev/core' is not installed in your project or the path to the module is incorrect.
You can try installing the '@refinedev/core' module by running the following command in your project directory:
Or if you are using pnpm, you can use:
If the error persists, it could be due to a problem with the pnpm store. In this case, you can try running
pnpm store prune
to purge the cached modules. This command can solve the issue if it's caused by the peer dependencies allowing pnpm to use an older version of the '@refinedev/core' module rather than the latest.
If none of the above solutions work, please check your import statements to ensure that the path to the '@refinedev/core' module is correct.
Sources:
- Github Issue (closed): [BUG] Clean install doesn't compile: export 'TranslationContext' (imported as 'lt') was not found in '@refinedev/core' in mui.js > Comments Part 2 (https://github.com/refinedev/refine/issues/4439)
- Discord support thread: RefineDev Error: Cannot find module 'src/interfaces' or its corresponding type declarations. > Answers Part 1 (https://discord.com/channels/837692625737613362/1131566859771187261)
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@418995770205929473> kapa.ai is still learning and improving, please let us know how it did by reacting below