fusioncharts / vue-fusioncharts

Vue Component for FusionCharts JavaScript Charting Library
https://fusioncharts.github.io/vue-fusioncharts/
MIT License
89 stars 31 forks source link

Double loading vue with message You are running Vue in development mode. #70

Open Sebarkar opened 4 years ago

Sebarkar commented 4 years ago

2020-08-09

`import VueFusionCharts from 'vue-fusioncharts'; import FusionCharts from 'fusioncharts'; import Charts from 'fusioncharts/fusioncharts.charts'; import FusionTheme from 'fusioncharts/themes/fusioncharts.theme.fusion';

Vue.use(VueFusionCharts, FusionCharts, Charts, FusionTheme);`

When I commented this code Vue working as expected.

Casal0x commented 4 years ago

Yes i have the same issue, but its happening from fusioncharts on production mode.

UZaitsau commented 4 years ago

I have the same issues:

I guess that main reason for that is validation checks in library code like process.env.NODE_ENV !== 'production'. The process object during the building stage provides information about the current Node.js process. But in runtime it belongs to browser. I'm using webpack as a bundler. Any thoughts?

ghost commented 3 years ago

Just wanted to chime in to say I'm seeing this issue as well. It appears that the entire dev mode version of Vue (version 2.5.17) is included in both the dist/vue-fusioncharts.js and dist/vue-fusioncharts.min.js files. Most people will already be importing Vue with their own bundler or via CDN and don't need this other copy showing up.