How can I make changes in `node_modules/@refinedev` reflect in the build?
I try to track down a bug and just want to make some console.logs in
node_modules/@refinedev
. However, the changes do not reflect. How can I fix this?
PS: Rebuilding the @refinedev package seems to be a lot of work. Looking for a shortcut.3 Replies
Hi @grand_chat_chat. 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, you might find the Refine documentation on setting up your environment for development (https://refine.dev/docs/guides-concepts/contributing/#setting-up-your-environment-for-development) helpful. It provides guidance on how to work with packages and make changes that reflect in your development environment. If you're trying to make changes to a package within
node_modules
, consider forking the repository and making changes directly in your local clone, as this is generally a more sustainable approach for debugging and development.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@433636391487012874> kapa.ai is still learning and improving, please let us know how it did by reacting below
vicious-goldOP•2mo ago
I've tried using refine swizzle, but the plugin does not seem to offer customisable hooks
I eventually solved this problem by copying paste the source code of the file, almost changed every import path to
@refinedev/core
, and carbon copied some of the small functions that cannot be imported in this way. It's cumbersome but it works for me given the file is small. I hope this could help others that also want to debug in depth.