question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: Vue 2.7 usage - runtime errors + `legacy` seems to be removed but not mentioned in migration guide

See original GitHub issue

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

image

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:closed
  • Created 9 months ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
dangreencommented, Dec 6, 2022

@apertureless Actually, it should work with vue 2.7 cause it supports composition API. I’m researching it right now.

0reactions
jacekkarczmarczykcommented, Dec 7, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found