vue-fusioncharts icon indicating copy to clipboard operation
vue-fusioncharts copied to clipboard

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

Open Sebarkar opened this issue 4 years ago • 3 comments

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.

Sebarkar avatar Aug 09 '20 11:08 Sebarkar

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

Casal0x avatar Oct 14 '20 16:10 Casal0x

I have the same issues:

  • duplicating of the warning in dev mode
  • warning even in production mode

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?

UZaitsau avatar Oct 21 '20 12:10 UZaitsau

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.

ghost avatar Aug 20 '21 20:08 ghost