Use of non-public Vue.util breaks type-checking
See original GitHub issue- Review the documentation: https://docs.sentry.io/
- Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
- Use the latest release: https://github.com/getsentry/sentry-javascript/releases
- Provide a link to the affected event from your Sentry account
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:
- Created 3 years ago
- Reactions:13
- Comments:7 (4 by maintainers)
Top 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 >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
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!Just merged it. We should cut the next release on Monday afternoon 😃