File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
packages/node_modules/overmind/src Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 1- import { IS_PROXY } from 'proxy-state-tree'
21import isPlainObject from 'is-plain-obj'
2+ import { IS_PROXY } from 'proxy-state-tree'
33
44export type Message = {
55 type : string
@@ -59,7 +59,16 @@ export class Devtools {
5959 this . isConnected = true
6060 this . sendBuffer ( )
6161 }
62- this . ws . onerror = ( ) => { }
62+ this . ws . onerror = ( ) => {
63+ console . error (
64+ `OVERMIND DEVTOOLS: Not able to connect. You are trying to connect to "${ host } ", but there was no devtool there. Try the following:
65+
66+ - Make sure you are running the latest version of the devtools, using "npx overmind-devtools@latest" or install latest extension for VSCode
67+ - Close the current tab and open a new one
68+ - Make sure the correct port is configured in the devtools
69+ `
70+ )
71+ }
6372 this . ws . onclose = ( ) => {
6473 this . isConnected = false
6574
You can’t perform that action at this time.
0 commit comments