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.

Should not use vue inner util, after upgrade everything doesn't worked

See original GitHub issue

latest version of vue-demi added var warn = Vue.util.warn cause all old webpack build doesn’t worked

import Vue from 'vue'

var isVue2 = true
var isVue3 = false
var Vue2 = Vue
var warn = Vue.util.warn

this error is Vue.util is undefined

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sctouchcommented, Aug 25, 2022

It’s Vue.util.warn and fails at Vue.util. The screenshots suggest it should be Vue.default.util.warn but then everything also in this file also needs to be changed. I will take a look once it can be reproduced. I couldn’t reproduce on a nuxt 2 project either: https://github.com/piniajs/example-nuxt-2

@posva you have build or generate the project, next you have to start the project in your local yarn start and you will see the error.

0reactions
sctouchcommented, Aug 25, 2022

Yes, the same issue on 0.13.9 or 0.13.10. after nuxt generate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

vue.js - Updates to object inside array do not trigger updates
First things first. Using Vue.set isn't going to help. Vue.set is used to set the values of properties that Vue's reactivity system can't ......
Read more >
How to use typescript correctly? · Issue #255 · vuejs/vue-test ...
The main issue, is that wrapper.vm is typed as a generic Vue instance. This should probably typed as the component instance in use....
Read more >
Common Tips | Vue Test Utils
Common Tips. # Knowing What to Test. For UI components, we don't recommend aiming for complete line-based coverage, because it leads to too...
Read more >
Tips for Unit Testing Vue Components with Jest - Medium
Using Jest to unit test Vue.js components can be tricky. We need a separate Vue Test Utils (@vue/test-utils) scoped package in order to ......
Read more >
Create Reusable Components with the Vue 3 Composition API
A piece of code is portable when it can be used not only in different places in one project but also in different...
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