graceful-blue
graceful-blue5mo ago

Does anyone know how to disable the devtools or to change the server port ?

We are creating a microfront-end structure with multiple refine projects, but when we run host and microfrontend with yarn dev we face the problem: refine devtools failed to start. Port 5002 is already in use, please make sure no other devtools server is running. I've tried to remove the devtool provider from the app and remove dependecies from one app but it still give the same error.
2 Replies
kapa.ai
kapa.ai5mo ago
Hi @kerolos.salib. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- You can disable the devtools server from starting by using the parameter npm run refine dev -- --devtools=false as mentioned in this Github issue (https://github.com/refinedev/refine/issues/5211). If you want to remove devtools from your project temporarily, you can delete the @refinedev/devtools dependency. As for changing the server port, there seems to be an issue when trying to run multiple Refine projects simultaneously. The devtools server throws an error saying that the port is already in use. This issue is discussed in this Github issue (https://github.com/refinedev/refine/issues/5294). A workaround for this issue is to disable the devtools server when starting your project. You can do this by updating your refine dependencies to @latest and use refine dev --devtools=false to start your project as mentioned in this Discord thread (https://discord.com/channels/837692625737613362/1181199705716305940). Please note that these are temporary solutions and the Refine team is working on implementing a permanent solution. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai5mo ago
<@503618532991565835> kapa.ai is still learning and improving, please let us know how it did by reacting below