Static GitHub Issues

[578] webpack config with vue-echarts

prev: Store commit function doesn't execute in directly navigate to the app
next: Probably example from the docs is not working

I'am using vue-echarts whit nuxt. It can run fine in dev mode, when I use generate, it get's a known webpack error because of vue-echarts. here is the way to solve in webpack build of vue-cli: https://github.com/Justineo/vue-echarts#heads-up

but when I set this in nuxt.config.js, with example here: https://nuxtjs.org/api/configuration-build/#babel :

    loaders: [{
      test: /\.js$/,
      loader: 'babel-loader',
      exclude: /node_modules(?![\\/]vue-echarts[\\/])/
    }],

it can't work.

how can I get it to work?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c506">#c506</a>)</em></sub></div>