Closed mraksoll4 closed 1 year ago
What error are you getting?
If you were running bitcore-node on a previous node version, remove the node_modules folder in packages/bitcore-node
and then run npm i
from the top level of bitcore
i was try fresh install at latest nodejs 18 , there many deprecated warnings , and error when try run insight, broken charts if try fix that, it give blank white page.
OS ubuntu 20.04
Mongo db 6
builder@builder-virtual-machine:~$ node -v
v18.14.2
builder@builder-virtual-machine:~$ npm -v
9.5.0
Where i can change debug level ? for see where error for insight and node , if it even run , it not connect to node.
uilder@builder-virtual-machine:~/bitcore$ cd ./packages/insight && npm i && npm run build
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: react-chartjs-2@3.2.0
npm ERR! Found: react@18.1.0
npm ERR! node_modules/react
npm ERR! react@"18.1.0" from the root project
npm ERR! peerOptional react@"^16.9.0 || ^17.0.0 || ^18" from @reduxjs/toolkit@1.8.1
npm ERR! node_modules/@reduxjs/toolkit
npm ERR! @reduxjs/toolkit@"1.8.1" from the root project
npm ERR! 14 more (@testing-library/react, framer-motion, qrcode.react, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || ^17.0.0" from react-chartjs-2@3.2.0
npm ERR! node_modules/react-chartjs-2
npm ERR! react-chartjs-2@"3.2.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react@17.0.2
npm ERR! node_modules/react
npm ERR! peer react@"^16.8.0 || ^17.0.0" from react-chartjs-2@3.2.0
npm ERR! node_modules/react-chartjs-2
npm ERR! react-chartjs-2@"3.2.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /home/builder/.npm/_logs/2023-02-27T18_17_59_494Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in:
npm ERR! /home/builder/.npm/_logs/2023-02-27T18_17_59_494Z-debug-0.log
add 18
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
to
node_modules/react-chartjs-2"
in lock.json
fix problem at install and blank page
if remove lock.json it can broke all, so simplest solution for keep all workig versions.
about connect to node , need more deep debug level, but i cannot find where that setting.
The connection string to point to your node is in constants.ts
As far as the errors, I was just able to pull down a clean bitcore with node v18.14.2, npm v9.5.0, run npm i
and npm run build
without any issue.
try run insight from freash install. problem not at connect , it try from package-lock.json file install 2 different react version , there was problem
Yes, I did it with a fresh install. It worked fine for me
then it strage why it was lose react ^18 depend :/
how to run bitcore node at full debug level to see why it disconect from peers ? i mean config example with all services for debug it.
What commit is working ? and at what version of node ? I try latest from master with node 18 , and it not work.