You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"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 forexternal 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
The text was updated successfully, but these errors were encountered:
Hi there.
Yes. I've installed recharts separately and It messes componentLoader up.
other components such as dashboard crashes and throws error.
Just adding recharts in dependencies of adminjs in package-lock.json fixes
the bug. (packages used for that contain CD(circular dependency)).
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:
in console of browser:
Uncaught ReferenceError: recharts is not defined
at entry.js:13:57
Relevant code that's giving you issues
No response
The text was updated successfully, but these errors were encountered: