Latest vue-tsc release breaks templates that use global variables.
See original GitHub issuevue-tsc 0.34.12 breaks the following code:
<template>
<div>
<router-link to="/"> Home</router-link> |
<router-link to="/about">About</router-link> |
<a href="#" @click="$msal.instance.logoutRedirect()">Logout</a>
</div>
<router-view></router-view>
</template>
You get the error: Property '$msal' does not exist on type...
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
How to use global variables in Vue.js templates?
According to the documentation, you have to use the built-in function $t() which takes a string as a parameter, that is also the...
Read more >Global variables - Issue Templates for Jira
View all predefined system variables. You may use them in your templates but you won't be able to edit them. Create a new...
Read more >Automations and Templates — ESPHome
Every parameter in actions that has the label “templatable” in the docs can be templated like above, using all of the usual lambda...
Read more >Configuring Vitest
In addition to the following options, you can also use any configuration option from Vite. For example, define to define global variables, ...
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 Free
Top 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
It seems to work with
"target": 2.7
intsconfig.json
.For Nuxt 2 projects you want to install
@nuxt/types
and add it totypes
in tsconfig.json.