I was building a React project with Vite and it was going great. I needed to add some charts and found out about the recharts package and really liked it so downloaded it into my project with the command npm i recharts
.
I get the following message:
I then ran npm audit
, npm audit fix
and npm audit fix --force
and got this:
Now when I try to start up my project with npm run dev
I get this error in the console:
Uncaught TypeError: import_events.default is not a constructor
It says it’s coming from a file called Events.js but I do not have such a file in my project.
I tried running npm audit fix --force
multiple times like my terminal told me to but it did not work.