Closed seikosantana closed 1 year ago
The npm statement you are using npm i chart-js react-chartjs-2
is using a package that does not exist. chart-js
is not on npm.
I was able to install the react-chartjs-2 lib successfully with this command:
npm i react-chartjs-2
I tested with the remote-component-starter. If you are having difficulties with another project, can you include a link to a github repo so we can reproduce it?
Sorry i think i mistyped it when creating the issue. It meant to be chart.js
instead of chart-js
.
I have also solved the issue (I think at least for now), and updated the library dependencies for newer version of webpack and typescript support. I haven't started using it intensively for now and i think this issue can be closed.
Maybe will reopen if i encounter anything else related to this issue.
Thanks a lot!
Hi,
I gave this library a try and i liked how it works, but I encounter problems when trying to add more external libraries like chart js. Here's what I tried:
npm i chart-js react-chartjs-2
I haven't even tinkered with the remote component configuration as i dont mind if libraries get bundled anyway, webpack wasnt able to build:
Any clue on how to fix this? I'm really hoping to use this remote-component.
Thanks in advance