`Property 'xxx' does not exist on type 'Vue'` thrown when accessing public member of a Vue class (using `rollup-plugin-vue`)
See original GitHub issueNot sure if this is a rollup-plugin-vue or a rollup-plugin-typescript2 issue. When calling a public method on a Vue/TypeScript class, an error Property 'xxx' does not exist on type 'Vue'
is thrown.
Reproduction link https://repl.it/@orobert91/PropertyDoesNotExistOnTypeVue
Steps to reproduce Run the Replit.
What is expected? To compile correctly. This code compiles fine with tsc and WebPack.
What is actually happening? It does not compile.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top Results From Across the Web
javascript - Property 'XXX' does not exist on type ' ...
I get below error: Property 'doThisInput' does not exist on type 'CombinedVueInstance<Vue, unknown, unknown, unknown, Readonly<Record<never, ...
Read more >JS-0239 · Consider using `let` or `const` instead of `var`
1var Vue = (function (exports) { 2 'use strict'; 3 4 /** 5 * Make a map and return a function for checking...
Read more >TS2339: Property 'XX' does not exist on type 'Vue'" when ...
Coding example for the question "TS2339: Property 'XX' does not exist on type 'Vue'" when bundling with rollup-Vue.js.
Read more >@vue/compiler-sfc | Yarn - Package Manager
@vue/compiler-sfc. Lower level utilities for compiling Vue Single File Components. Note: as of 3.2.13+, this package is included as a dependency ...
Read more >Add project
... vue-client/customs.json; vue-client/src/main/java/Server.java; vue-client/src/main/resources/logback.xml; vue-client/static/add.html ...
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
Same here. In my case
Then call like
this.baseViewMethod()
within ChildView instance throwson
rollup
.rollup-plugin-vue
is now archived/deprecated and per the linked issue, this looked like more of an issue there than here.As such, and since this issue has not seen any activity in some time, will close this out as stale.
Can re-open down the line if necessary, but I expect it won’t be due to the status of
rollup-plugin-vue