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

Vue2 and vue-chart-3 fail after 2.7 backport of composition API #133

Open
3 tasks
abdulmlik opened this issue Aug 14, 2022 · 5 comments
Open
3 tasks

Vue2 and vue-chart-3 fail after 2.7 backport of composition API #133

abdulmlik opened this issue Aug 14, 2022 · 5 comments

Comments

@abdulmlik
Copy link

abdulmlik commented Aug 14, 2022

Version

  • Vue version: 2.7.8

Description
vue-chart-3 uses the Composition API and in order to make Vue2 work, you need to use the @vue/composition-api dependency. I've been using vue-chart-3, Vue2 and the Composition plugin with no issues until today when I upgraded to the latest version of vue...which backports the composition API.

Version of vue-chart-3

v2.1.3

Version of Vue

  • Vue 3
  • [✅] Vue 2
  • Nuxt 2
  • Nuxt 3
@kstrckr
Copy link

kstrckr commented Aug 16, 2022

+1 Seeing the same

@Kenvdb
Copy link

Kenvdb commented Sep 20, 2022

Running into the same error on my side, is anyone checking up on this?

npm WARN Could not resolve dependency:
npm WARN peer vue@">= 2.5 < 2.7" from @vue/composition-api@1.7.0
npm WARN node_modules/vue-chart-3/node_modules/@vue/composition-api
npm WARN   @vue/composition-api@"^1.4.5" from vue-chart-3@2.1.2
npm WARN   node_modules/vue-chart-3

vue.runtime.esm.js?c320:4573 [Vue warn]: Error in setup: "Error: [vue-composition-api] No vue dependency found."
Getting these kind of errors after running the application, but Vue Composition API is included in Vue 2.7.x.

@victorgarciaesgi
Copy link
Owner

Sorry guys I do not maintain this anymore :( I advise you to use vue-chartjs instead.
If you are really blocked I could see If i can replace @vue/composition-api by vue-demi for Vue 2.7 to work

@Kenvdb
Copy link

Kenvdb commented Sep 21, 2022

Ok, thanks for getting back. I'll investigate the migration to VueChartJs.

@VaguelyOnline
Copy link

+1 for the fix to support vue 2.7. I'll also look into migrating to vue-chartjs, but it would really helpful if this unnecessary dependency was removed. As far as I can tell, there's no coding change required - just a dependency declaration (since 2.7 backports composition API support).

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

No branches or pull requests

5 participants