carterbourette / vue-frappe-chart Goto Github PK
View Code? Open in Web Editor NEWA simple Vue wrapper for Frappe Charts.
Home Page: https://carterbourette.ca/vue-frappe-chart
A simple Vue wrapper for Frappe Charts.
Home Page: https://carterbourette.ca/vue-frappe-chart
X [ERROR] Could not resolve "./Chart"
node_modules/vue-frappe-chart/src/components/index.js:1:33:
1 │ export { default as Chart } from "./Chart"
╵ ~~~~~~~~~
11:51:16 [vite] error while updating dependencies:
Error: Build failed with 1 error:
node_modules/vue-frappe-chart/src/components/index.js:1:33: ERROR: Could not resolve "./Chart"
at failureErrorWithLog (C:\Users\happy\Documents\GitHub\purecore\landing\node_modules\esbuild\lib\main.js:1605:15)
at C:\Users\happy\Documents\GitHub\purecore\landing\node_modules\esbuild\lib\main.js:1251:28
at runOnEndCallbacks (C:\Users\happy\Documents\GitHub\purecore\landing\node_modules\esbuild\lib\main.js:1034:63)
at buildResponseToResult (C:\Users\happy\Documents\GitHub\purecore\landing\node_modules\esbuild\lib\main.js:1249:7)
at C:\Users\happy\Documents\GitHub\purecore\landing\node_modules\esbuild\lib\main.js:1358:14
at C:\Users\happy\Documents\GitHub\purecore\landing\node_modules\esbuild\lib\main.js:666:9
at handleIncomingPacket (C:\Users\happy\Documents\GitHub\purecore\landing\node_modules\esbuild\lib\main.js:763:9)
at Socket.readFromStdout (C:\Users\happy\Documents\GitHub\purecore\landing\node_modules\esbuild\lib\main.js:632:7)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12)
Vite Error, /node_modules/.vite/deps/vue-frappe-chart.js?v=232d0f16 optimized info should be defined
my component:
<template>
<v-frappe-chart />
</template>
<script>
import { VFrappeChart } from "vue-frappe-chart"
export default {
components: {
VFrappeChart,
},
}
</script>
Loads good if I open the page directly, but error appears if I go to the page using router's link.
Error:
Uncaught (in promise) Error: No parent
element to render on was provided.
So if you pass camel-cased props like yMarkers, barOptions etc. the component does not recognize it.
The problem is Vue converts all camelcase props to ymarkers, baroptions etc. So in the parse() function in Chart.vue, these props are registered incorrectly.
BTW thank you for building this. It was very beneficial.
Your package looks fantastic! Thanks for the awesome work.
Just there is no hint anywhere if this is made for Vue 2 or 3 (or both?).
Facing runtime error on vue-frappe-chart, the error seems to occur frequently, but I couldn't figgure out an proper fix.
Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
at e.value (webpack-internal:///./node_modules/frappe-charts/dist/frappe-charts.min.esm.js:1572:36)
at e.value (webpack-internal:///./node_modules/frappe-charts/dist/frappe-charts.min.esm.js:1555:79)
at boundDrawFn (webpack-internal:///./node_modules/frappe-charts/dist/frappe-charts.min.esm.js:1513:20)
ERROR
Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
at e.value (webpack-internal:///./node_modules/frappe-charts/dist/frappe-charts.min.esm.js:1572:36)
at e.value (webpack-internal:///./node_modules/frappe-charts/dist/frappe-charts.min.esm.js:1555:79)
at boundDrawFn (webpack-internal:///./node_modules/frappe-charts/dist/frappe-charts.min.esm.js:1513:20)
screenshot
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.