Comments (4)
Hi @LePashtet, it seems to be a Typescript issue with Vue 3 package, not vue-chart-3
related.
Have you tried to add skipLibCheck
to your tsconfig?
Otherwise open a bug to the vue repo
from vue-chart-3.
For anyone else stumbling upon this issue, it's due to a version mismatch as this library depends on @vue/runtime-core
and @vue/runtime-dom
but does not directly depend on vue
itself.
Whereas in an application project, one usually just depends on vue
, and it will pull its own versions of @vue/runtime-core
and @vue/runtime-dom
effectively duplicating these dependencies with different versions and typescript definitions (thus the errors).
This library could simply fix this by directly depending on vue
instead, meanwhile anyone affected can add a direct dependency to both @vue/runtime-dom
and @vue/runtime-core
that match the versions of vue
, pinning them if needed.
from vue-chart-3.
@tamasfe I just updated the peer deps in 3.1.1
. It seems to not only be related to vite
since vue-cli has the error too (#102 ). Tell me if it works :)
from vue-chart-3.
Unfortunately I can't check for the same project I mentioned as it changed a lot since then.
But it seems to work with a fresh vite template!
from vue-chart-3.
Related Issues (20)
- Wrapper crashes if chartData is updated HOT 9
- [ERR_REQUIRE_ESM]: require() of ES Module [...]/node_modules/vue-chart-3/dist/index.cjs not supported HOT 3
- Advanced axes, multi dataset, and histogram capabilities failure HOT 3
- missing version information in vue-cli
- Broken chart when modifying the dataset in onMounted() HOT 1
- LineChart X-axes data collapses to 0 on update of source data HOT 2
- Cannot set background gradient HOT 1
- Typescript errors appeared after installing vue-char-3
- Click event handler? HOT 1
- vue-chart-3 blocks hmr update feature (vite)
- [vue-composition-api] must call Vue.use(VueCompositionAPI) before using any function HOT 2
- Can I use the option HOT 1
- Move to vue-chartjs. HOT 2
- Deprecate package on NPM HOT 1
- Accessing the ref HOT 2
- Cannot find module `chart.js/helpers` imported from `/node_modules`
- Vue2 and vue-chart-3 fail after 2.7 backport of composition API HOT 5
- MixedChart error
- LineChart background gradient fail
- Chart outdated HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-chart-3.