Property '$log' does not exist on type '*'
See original GitHub issueHi!
I’m using TypeScript with my Vue 2 project but after adding the vuejs-logger module and bound it to Vue I get the following error:
Property '$log' does not exist on type 'Application'.
That’s the same for all my components… any idea how to solve this please?
Thanks
Issue Analytics
- State:
- Created 5 years ago
- Comments:27 (4 by maintainers)
Top Results From Across the Web
error TS2339: Property 'log' does not exist on type '{ new ...
To be clear, Console seems to be a constructor function that produced the console object. console instanceof Console; // true Though it doesn't...
Read more >TS2339: Property 'log' does not exist on type 'Formatter'. #292
error: TS2339: Property 'log' does not exist on type 'Formatter'.
Read more >Property does not exist on type '{}' in TypeScript | bobbyhadz
The "Property does not exist on type '{}'" error occurs when we try to access or set a property that is not contained...
Read more >How To Fix The "Property does not exist on type Window ...
A good example of this is the Property does not exist on type 'Window & typeof globalThis' error. The Problem. This error occurs...
Read more >TS2339: Property does not exist on type : WEB-42908
TS2339 : Property 'index' does not exist on type 'Repository'. But, when I compile with TypeScript, it reports zero errors. Further, if I...
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
@sneko solution almost worked for me. Had to change the interface to use the
VueConstructor
instead.@justinkames would you consider adding such a
.d.ts
file in the NPM package, or publishing another package with type definitions? This is needed to properly use vuejs-logger in Typescript projects.In the meantime we can all work around it by adding the definitions ourselves, but it would be better if we didn’t have to.