[Bug]: Vue 2.7 usage - runtime errors + `legacy` seems to be removed but not mentioned in migration guide
See original GitHub issueWould you like to work on a fix?
- Check this if you would like to implement a PR, we are more than happy to help you go through the process.
Current and expected behavior
Although it’s mentioned in migration guide that the package supports Vue 2.7 I have difficulties with making it working.
First - importing from vue-chartjs/legacy
doesn’t work any more:
// Module not found: Error: Package path ./legacy is not exported from package ...
import { Bar as BarChart } from 'vue-chartjs/legacy';
Second - importing from ‘vue-chartjs’ throws missing property errors, even after changing them from chart-data
to data
etc.
Reproduction
https://stackblitz.com/edit/github-tqxopy?file=src%2FApp.vue
chart.js version
4.0.1
vue-chartjs version
5.0.0
Possible solution
No response
Issue Analytics
- State:
- Created 9 months ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
After updating npm packages. Error: Could not parse template ...
Error : Could not parse template expression: #1299 ... API is considered Legacy. new code should use the URLSearchParams API instead. warning ...
Read more >Migration to Vue 2.7
Migration to Vue 2.7. Despite Vue 3 now being the default version, we understand that there are still many users who have to...
Read more >Vuejs 3 webpack : Problem with vue-template-compiler
To make vue 3 work fine with webpack without using vite or vue cli follow these steps : init the package.json like :....
Read more >Vue.js: How to Migrate a large project from Vue 2 to Vue 3
We prepared this migration by reading the official Vue Migration Tutorial, but we discovered many different caveats while migrating our project.
Read more >Bug listing with status RESOLVED with resolution OBSOLETE ...
Bug :1523 - "[IDEA] Offload work by distributing trivial ebuild maintenance ... Bug:112423 - "sys-kernel/module-rebuild-0.5 does not appear to handle portage ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@apertureless Actually, it should work with vue 2.7 cause it supports composition API. I’m researching it right now.
I can confirm it works fine now, but I’d suggest to add to the release notes and migration guide information that for Vue 2.7 you need to remove
/legacy
from the import path