Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Invalid Version: undefined when trying to use react-devtools #97

Open
dpacmittal opened this issue Jun 6, 2019 · 1 comment

Comments

@dpacmittal
Copy link

I'm trying to use react-devtools and I'm getting this error:

TypeError: Invalid Version: undefined
    at new K (/home/dpac/projects/blessed-binance/node_modules/react-devtools-core/build/backend.js:1:63911)
    at Z (/home/dpac/projects/blessed-binance/node_modules/react-devtools-core/build/backend.js:1:67537)
    at Function.re [as gte] (/home/dpac/projects/blessed-binance/node_modules/react-devtools-core/build/backend.js:1:67745)
    at e.exports (/home/dpac/projects/blessed-binance/node_modules/react-devtools-core/build/backend.js:1:52797)
    at e.exports (/home/dpac/projects/blessed-binance/node_modules/react-devtools-core/build/backend.js:1:43706)
    at e.exports (/home/dpac/projects/blessed-binance/node_modules/react-devtools-core/build/backend.js:1:42718)
    at e.exports (/home/dpac/projects/blessed-binance/node_modules/react-devtools-core/build/backend.js:1:42368)
    at t.<anonymous> (/home/dpac/projects/blessed-binance/node_modules/react-devtools-core/build/backend.js:1:9822)
    at t.r (/home/dpac/projects/blessed-binance/node_modules/react-devtools-core/build/backend.js:1:21852)
    at t.r.emit (/home/dpac/projects/blessed-binance/node_modules/react-devtools-core/build/backend.js:1:20642)

I'm not sure what's wrong. Here's my package.json:

{
  "name": "binance-cli",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "build": "tsc -p ./",
    "watch": "tsc -w -p ./"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@types/blessed": "^0.1.11",
    "@types/react": "^16.8.19",
    "@types/react-blessed": "^0.3.1",
    "@types/ws": "^6.0.1",
    "binance-api-node": "^0.9.2",
    "blessed": "^0.1.81",
    "blessed-contrib": "^4.8.16",
    "mobx-react-lite": "^1.4.0",
    "neo-blessed": "^0.2.0",
    "react": "^16.8.0",
    "react-blessed": "0.6.0",
    "react-blessed-contrib": "^0.2.1",
    "react-devtools-core": "^3.0.0",
    "ts.data.json": "^0.2.0",
    "winston": "^3.2.1"
  },
  "devDependencies": {
    "typescript": "^3.4.4"
  }
}

This only happens when react-devtools is open.

@dpacmittal
Copy link
Author

I removed node_modules folder and updated my package.json (removed react-devtools-core and blessed) to:

{
  "name": "binance-cli",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "build": "tsc -p ./",
    "watch": "tsc -w -p ./"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@types/blessed": "^0.1.11",
    "@types/react": "^16.8.19",
    "@types/react-blessed": "^0.3.1",
    "@types/ws": "^6.0.1",
    "binance-api-node": "^0.9.2",
    "blessed-contrib": "^4.8.16",
    "neo-blessed": "^0.2.0",
    "react": "^16.8.0",
    "react-blessed": "0.6.0",
    "react-blessed-contrib": "^0.2.1",
    "ts.data.json": "^0.2.0",
    "winston": "^3.2.1"
  },
  "devDependencies": {
    "typescript": "^3.4.4"
  }
}

Now I have started getting:
WARNING: the `ws` package must be installed to use `react-devtools`.

Which is why I had installed react-devtools-core and ws in the first place using install-peerdeps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant