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.

Use of non-public Vue.util breaks type-checking

See original GitHub issue

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other: @sentry/integrations

Version:

5.16.0

Description

The interface declaration in vue.d.ts requires Vue.util, but this is not publicly exposed by Vue as declared in this comment - https://github.com/vuejs/vue/blob/fb589e6f9bc7db56a508f8f610ce321377bf0a6f/dist/vue.js#L5392, and also that Vue’s types declarations do not contain util - https://github.com/vuejs/vue/blob/dev/types/vue.d.ts.

This is causing type-checking to return Property ‘util’ is missing in type ‘VueConstructor<Vue>’ but required in type ‘VueInstance’ and breaks the build.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:13
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
kamilogorekcommented, Jun 3, 2020

Thanks for letting us know! Fixed in https://github.com/getsentry/sentry-javascript/pull/2634 Also, changed config to be non-optional, as this is how it is in the original Vue types as well. Cheers!

4reactions
kamilogorekcommented, Jun 5, 2020

Just merged it. We should cut the next release on Monday afternoon 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Guides | Vue Test Utils
Vue Test Utils (VTU) is a set of utility functions aimed to simplify testing Vue.js components. It provides some methods to mount and...
Read more >
Vue.js | IntelliJ IDEA Documentation - JetBrains
Vue.js is a framework for developing user interfaces and advanced single-page applications. IntelliJ IDEA provides support for the Vue.js ...
Read more >
Help! My Vue.js Tests are Breaking! - Highland Solutions
Vue Test Utils has always provided the ability to test asynchronous real life code. The original way to do this uses the Vue.js...
Read more >
Structuring and testing a Vue/Vuex app with vue-test-utils
Let's break it down: We import vue , vuex , and do Vue.use(Vuex . Now we can use vuex in the test ...
Read more >
Testing Vue.js components with Vue Test Utils - LogRocket Blog
You hate it, right? But, should you? Should you test your components if you want to create a reliable application? I will tell...
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