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

Vue-chartjs components creating a second Vue runtime #39

Closed
v-stein opened this issue Feb 17, 2017 · 2 comments
Closed

Vue-chartjs components creating a second Vue runtime #39

v-stein opened this issue Feb 17, 2017 · 2 comments

Comments

@v-stein
Copy link

v-stein commented Feb 17, 2017

Actual Behavior

When registering a custom component using vue-chartjs, at the moment of the require, a second Vue runtime is executed, resulting:

You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html

You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html

In boostrap.js there is this line:

window.Vue = require('vue');

But I figured out that in each vue-chartjs component (as Bar, Line, ...) there is also this line:

import Vue from 'vue'

Environment

  • NPM Version: 4.1.2
  • Node Version: 7.4.0
  • Laravel Version: 5.4
  • Vue Version: 1.10
@apertureless
Copy link
Owner

I am utilizing Vue.extend() to create the chart components. Because the usage of the components would be this way clean, easy and extendable.

If you know a better way, feel free to submit a PR :)

@apertureless
Copy link
Owner

apertureless commented Feb 17, 2017 via email

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

No branches or pull requests

2 participants