zingchart / zingchart-vue

A Vue component to create charts with ZingChart
https://www.zingchart.com/docs/integrations/vue
MIT License
26 stars 5 forks source link

Vue3 Failed to resolve component #29

Closed dbxnr closed 6 months ago

dbxnr commented 7 months ago

I upgraded Vue to v3, using 3.0.0 of zingchart-vue, and now get Failed to resolve component: ZingChartVue

These are the relevant lines from my local component registration:

import "zingchart/es6";
import "zingchart/modules-es6/zingchart-scalableyaxis.min.js";
import ZingChartVue from "zingchart-vue";
dbxnr commented 7 months ago

Narrowing this down, the version published on NPM has zingchart-vue: "^2.0.4" as a dependency, which in turn was pulling in vue: 2.7.8 as a dependency.

Slightly fixed by using this repo as a source, although encountering Missing ref owner context errors now.

agois83 commented 7 months ago

Hi dbxnr,

We will look into this asap and get back to you.

lasabahebwa commented 6 months ago

@dbxnr I failed to replicate the error Failed to resolve component: ZingChartVue you mentioned above. In this demo, I'm using Vue 3, together with "zingchart-vue": "^3.0.0" while using local component registration and everything seems to work fine. You might want to use it for reference. You will need to install dependencies with npm install and the npm run dev to see the app in the browser.

lasabahebwa commented 6 months ago

@dbxnr If this issue persists on your end, please share a code demo(feel free to remove any confidential information) in any JavaScript playground like jsfiddle, codepen, codesandbox etc. It might help us towards your solution.