-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HistographicDataUpdationProblemSolved
- Loading branch information
1 parent
f318111
commit f372a40
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f372a40
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see this is my error
what should i do ?
f372a40
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f372a40
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you plz tell me, how ... mine is still n0t working i tried different versions
first i installed latest version of react-chartjs-2 then i uninstall it ..
now i am trying another version( npm i react-chartjs-2@3.0.4 chart.js@^3.0.0),, my terminal show me this error....
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || ^17.0.0" from react-chartjs-2@3.0.4
npm ERR! node_modules/react-chartjs-2
npm ERR! react-chartjs-2@"3.0.4" from the root project
f372a40
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ishazaka Try cloning this repo Here](https://github.com/amansadhwani/crypto-tracker)
f372a40
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add this on your code, worked in mine after i downgraded to react chart js 3.0.4
add use params and import it too
const { id } = useParams();
change the axios get line from coin.id to id
onst { data } = await axios.get(HistoricalChart(id, days, currency));
f372a40
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am getting this error what to do tried many ways and nothing is displaying except a white blank page.