Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: recharts module not found #1667

Open
YoYanJonas opened this issue May 20, 2024 · 2 comments
Open

[Bug]: recharts module not found #1667

YoYanJonas opened this issue May 20, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@YoYanJonas
Copy link

YoYanJonas commented May 20, 2024

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

@YoYanJonas YoYanJonas added the bug Something isn't working label May 20, 2024
@dziraf
Copy link
Contributor

dziraf commented May 21, 2024

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

@YoYanJonas
Copy link
Author

YoYanJonas commented May 21, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants