question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I have error to load apexcharts. After npm install. what hapens ?

See original GitHub issue
ERROR in ./resources/assets/js/app.js
Module not found: Error: Can't resolve 'vue-apexcharts' in '/var/www/html/betajanelaunica/resources/assets/js'
 @ ./resources/assets/js/app.js 130:0-43
 @ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss

ERROR in ./node_modules/babel-loader/lib?{"cacheDirectory":true,"presets":[["env",{"modules":false,"targets":{"browsers":["> 2%"],"uglify":true}}]],"plugins":["transform-object-rest-spread",["transform-runtime",{"polyfill":false,"helpers":false}]]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./resources/assets/js/components/widgets/Sparkline.vue
Module not found: Error: Can't resolve 'vue-apexcharts' in '/var/www/html/betajanelaunica/resources/assets/js/components/widgets'
 @ ./node_modules/babel-loader/lib?{"cacheDirectory":true,"presets":[["env",{"modules":false,"targets":{"browsers":["> 2%"],"uglify":true}}]],"plugins":["transform-object-rest-spread",["transform-runtime",{"polyfill":false,"helpers":false}]]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./resources/assets/js/components/widgets/Sparkline.vue 8:0-43
 @ ./resources/assets/js/components/widgets/Sparkline.vue
 @ ./resources/assets/js/app.js
 @ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ dev: `npm run development`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the @ dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  • I just npm install
  • Before npm install it’s run Composer.lock
 "apexcharts": {
      "version": "1.5.4",
      "resolved": "https://registry.npmjs.org/apexcharts/-/apexcharts-1.5.4.tgz",
      "integrity": "sha512-baEAE9GNNtKOd0/T37Twk+BdDvzHU2TYp+3w0e47VZ1Tq51fjXDp/6I4KQ/8YX/lGeWdwGmjMllB2T1wTmLYTw==",
      "requires": {
        "babel-polyfill": "^6.26.0",
        "core-js": "^2.5.7",
        "es6-promise-promise": "^1.0.0",
        "svg.draggable.js": "^2.2.1",
        "svg.easing.js": "^2.0.0",
        "svg.filter.js": "^2.0.2",
        "svg.js": "^2.6.6",
        "svg.pathmorphing.js": "^0.1.3",
        "svg.resize.js": "^1.4.1",
        "svg.select.js": "^2.1.2"
      },

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
junedchhipacommented, Sep 25, 2018

Please follow this guide https://apexcharts.com/docs/vue-charts/ step by step Or create a codesandbox demo of what you’re trying to do

2reactions
a21ns1g4tscommented, Sep 25, 2018

I just remove cache npm and run: npm install --save vue-apexcharts apexcharts I remember before npm update only vue-apexcharts running

Read more comments on GitHub >

github_iconTop Results From Across the Web

apexcharts - npm
A modern JavaScript charting library that allows you to build interactive data visualizations with simple API and 100+ ready-to-use samples.
Read more >
Unexpected token export and a lot more errors on import of ...
I am trying to use google charts with meteor js. I had it installed via NPM by: meteor npm install --save google-charts.
Read more >
Apexcharts how to add js scripts - General - Node-RED Forum
Hi, I've been trying to make apexcharts to work on the dashboard via template + ui_template nodes. The chart works only the first...
Read more >
Installation & Getting Started - ApexCharts.js
Integrating ApexCharts is as simple as it can get with extensive API docs and 100+ samples ready to be used. Check out all...
Read more >
How to solve Next.js window is not defined
In this environment, we don't have access to window . So, what happens? ... The page doesn't error and loads just fine. What...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found