SoftwareBrothers / adminjs

AdminJS is an admin panel for apps written in node.js

Home Page:https://adminjs.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: recharts module not found

YoYanJonas opened this issue · comments

Contact Details

No response

What happened?

"recharts" is imported by "main/dashboard/charts/myComponent.jsx", but could not be resolved – treating it as an external dependency.
No name was provided for external module "recharts" in "output.globals" – guessing "recharts".

and as I looked in console.log of browser, I found out that recharts is not found.
I checked my package-lock.json file and searched for recharts. unfortunately not found.
So what's the problem?

Bug prevalence

n

AdminJS dependencies version

"@adminjs/express": "^6.1.0",
"@adminjs/mongoose": "^4.1.0",
"adminjs": "^7.8.1",
node V 18.19.0

What browsers do you see the problem on?

Firefox, Chrome, Safari, Microsoft Edge

Relevant log output

in terminal:

"recharts" is imported by "main/dashboard/charts/myComponent.jsx", but could not be resolved – treating it as an external dependency.
No name was provided for external module "recharts" in "output.globals" – guessing "recharts".

in console of browser:
Uncaught ReferenceError: recharts is not defined
at entry.js:13:57

Relevant code that's giving you issues

No response

Did you install recharts? AdminJS doesn't use it internally