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

Vue3 Failed to resolve component

Open dbxnr opened this issue 10 months ago • 2 comments

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 avatar Apr 19 '24 17:04 dbxnr

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.

dbxnr avatar Apr 21 '24 01:04 dbxnr

Hi dbxnr,

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

agois83 avatar Apr 22 '24 17:04 agois83

@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 avatar May 13 '24 21:05 lasabahebwa

@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.

lasabahebwa avatar May 13 '24 21:05 lasabahebwa