Could not connect to the devtools server
Facing this issue - Could not connect to the devtools server
can anyone guide me what needs to be done after the below 2 steps
npm run refine devtools init.
npm i @refinedev/cli@latest.
45 Replies
Hi @jash.s. 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 you're trying to use the refine CLI and possibly facing issues with the devtools. However, there's no specific information about the devtools server issue you're facing in the provided extracts.
The refine CLI provides various commands for managing your refine project. You can check for updates to your refine packages using
npm run refine check-updates
and update them with npm run refine update
source (https://refine.dev/docs/packages/documentation/cli/).
If you're trying to use React Query Devtools with refine, it's important to note that React Query Devtools have been removed from the @refinedev/core
and the configuration for the devtools is no longer supported. You can use the @tanstack/react-query-devtools
in your app directly to use the devtools source (https://refine.dev/docs/api-reference/core/components/refine-config/).
If you're still facing issues, I would recommend checking the official refine documentation or reaching out to the refine community for more specific guidance.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@1129363768661516329> kapa.ai is still learning and improving, please let us know how it did by reacting below
correct-apricotβ’12mo ago
hello @jash.s
npm run dev
will automatically starts devtools.
can you share error output with us please ?conscious-sapphireβ’12mo ago
I m using yarn
conscious-sapphireβ’12mo ago
@alicanerdurmaz
"dev": "PORT=3001 env-cmd -f .env.dev refine start",
using yarn dev
correct-apricotβ’12mo ago
do you get any other error on Chrome console or terminal output ?
conscious-sapphireβ’12mo ago
context.tsx:43 WebSocket connection to 'ws://localhost:5002/' failed:
this might be related to it
conscious-sapphireβ’12mo ago
@alicanerdurmaz
correct-apricotβ’12mo ago
it's a long shot but can you try with npm please ?
conscious-sapphireβ’12mo ago
@alicanerdurmaz Started the project with npm run dev , but still facing the same issue
correct-apricotβ’12mo ago
I will debug and return you as soon as possible. but also can you share "yarn run refine whoami" please
conscious-sapphireβ’12mo ago
sorry not able to get this yarn run refine whoami
correct-apricotβ’12mo ago
npm run refine whoami ?
conscious-sapphireβ’12mo ago
conscious-sapphireβ’12mo ago
@alicanerdurmaz will this do ?