victorgarciaesgi / vue-chart-3

📊 A simple wrapper around Chart.js 3 for Vue 2 & 3
https://vue-chart-3.netlify.app/
MIT License
309 stars 109 forks source link

Invalid module name in augmentation, module '@vue/runtime-core' cannot be found.ts(2664) after installing #50

Closed sambitevidev closed 2 years ago

sambitevidev commented 2 years ago

Hey @victorgarciaesgi great lib. I faced an issue after installing it in my vue@3.2.21 project

Invalid module name in augmentation, module '@vue/runtime-core' cannot be found.ts(2664)

image

When I'm uninstalling this and re-loading vscode, the issue is not there. Can you please help. thx

victorgarciaesgi commented 2 years ago

Hi @sambitevidev , where does the error comes from? This does not seems related to vue-chart-3

soulsam480 commented 2 years ago

This is coming from vue-demi it seems. the declarations of @vue/runtime-core seems to overlap. I made a fork of this project and rewrote entirely in <script setup>. Works well, but doesn't have vue 2 support and hooks. https://github.com/soulsam480/vue-chart-3

victorgarciaesgi commented 2 years ago

Yeah I have problem with vue-demi since 0.5.x. I'm working on removing vue-demi et maintaining 2 separates branches for Vue 2 and Vue 3. It's too complex to manage deps and types for 2 vue versions

soulsam480 commented 2 years ago

yes, I had a pleasant experience while re writing in <scrip setup>. Also the code was easy to understand, really thanks for your hard work.

victorgarciaesgi commented 2 years ago

Thanks a lot! I only need time I just started a new job aha

soulsam480 commented 2 years ago

Thanks a lot! I only need time I just started a new job aha

That's cool. Congrats

victorgarciaesgi commented 2 years ago

@soulsam480 New version only for Vue 3 is out. With a legacy 2.x for Vue 2! Check out the new docs :)

soulsam480 commented 2 years ago

Sure will check it