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

Module not found: Can't resolve 'apexcharts/dist/apexcharts.common' #139

Closed
Gauthamjm007 opened this issue Jan 30, 2020 · 11 comments
Closed

Comments

@Gauthamjm007
Copy link

Failed to compile

./node_modules/react-apexcharts/dist/react-apexcharts.min.js
Module not found: Can't resolve 'apexcharts/dist/apexcharts.common' in 'Z:\React\misc-examples\node_modules\react-apexcharts\dist'

This error occurred during the build time and cannot be dismissed.

@junedchhipa
Copy link
Contributor

Which versions of apexcharts and react-apexcharts are you using?

@Gauthamjm007
Copy link
Author

"apexcharts": {
"version": "3.15.3",
"resolved": "https://registry.npmjs.org/apexcharts/-/apexcharts-3.15.3.tgz",
"integrity": "sha512-DfXhSqFaulF3C7YyMR77Jk4ESa66QjoqrBvxw3gLvRs5KK0fhmk0kuuWtxtpBulm2oWBVsi6VKHiy+YlBRPasg==",
"requires": {
"svg.draggable.js": "^2.2.2",
"svg.easing.js": "^2.0.0",
"svg.filter.js": "^2.0.2",
"svg.pathmorphing.js": "^0.1.3",
"svg.resize.js": "^1.4.3",
"svg.select.js": "^2.1.2"
}
}

"react-apexcharts": {
"version": "1.3.5",
"resolved": "https://registry.npmjs.org/react-apexcharts/-/react-apexcharts-1.3.5.tgz",
"integrity": "sha512-I7EQvmAR0ZdJNqbMqFD0RMgP3TzNt1qViQASEei0sUrlXa47nPdlSegPg/1HD2pOXEVt9TIgHvdMEILdJ6BFPg==",
"requires": {
"prop-types": "^15.5.7"
}
}

@Gauthamjm007
Copy link
Author

  • react-apexcharts@1.3.6
  • apexcharts@3.15.3

I UPDATED react-apexcharts to 1.3.6 and the issue is fixed now

@jhvissotto
Copy link

jhvissotto commented Mar 15, 2020

Same bug here. Fixed nothing.
Btw, the official website doesn't running the charts in React too.

@junedchhipa
Copy link
Contributor

junedchhipa commented Mar 15, 2020

@jhenriquevissotto Can you please tell me which page of the website isn't working?

@hieuplasma
Copy link

npm install --save react-apexcharts apexcharts

i ran this comman and my problem was solved

@bennycode
Copy link

Thanks for the solution! I had "react-apexcharts" installed but forgot to install "apexcharts". 🙈

@Simulanis-Dev-AvishPratapSingh

by this command "npm install --save react-apexcharts apexcharts"
my problem solved. thnx

@skydev0112b
Copy link

I solved above command too.
thanks.

@V1CTOR-cloud
Copy link

V1CTOR-cloud commented Mar 13, 2023

this should be fix the problem

Resume solutions:

  • Install react-apexcharts & apexcharts
    npm install react-apexcharts apexcharts # yarn add react-apexcharts apexcharts

not solved

  • Try to add the dependencies separated
    react-apexcharts --> npm install react-apexcharts # or yarn add react-apexcharts
    apexcharts --> npm install apexcharts # or yarn add apexcharts

@marl8n
Copy link

marl8n commented Dec 15, 2023

For mi the solution was importing the library as

import dynamic from 'next/dynamic'
const Chart = dynamic(() => import('react-apexcharts'), { ssr: false })

The error was because of using a cliente side oriented library in the server side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants