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.

`Property 'xxx' does not exist on type 'Vue'` thrown when accessing public member of a Vue class (using `rollup-plugin-vue`)

See original GitHub issue

Not 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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
shukobcommented, Sep 29, 2020

Same here. In my case

  • BaseView extends Vue
  • ChildView extends BaseView

Then call like this.baseViewMethod() within ChildView instance throws

 TS2339: Property 'baseViewMethod' does not exist on type 'ChildView'.

on rollup.

0reactions
agilgur5commented, Apr 24, 2022

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

Read more comments on GitHub >

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

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