current position:Home>'interface' declarations can only be used in typescript files in Vue 3.0 + ts resolvent
'interface' declarations can only be used in typescript files in Vue 3.0 + ts resolvent
2022-04-29 04:27:42【@huihui_ new】
First, check whether there is in the label lang=“ts”
<script lang="ts"></script>
If you don't add lang="ts" try , See if the problem is solved , If not solved , Try the following : open setting.json file , find
"files.associations": {
".eslintrc": "json",
"*.vue": "html"
}
Comment out "*.vue": “html”, as follows :
"files.associations": {
".eslintrc": "json",
//"*.vue": "html"
}
The problem can be solved
copyright notice
author[@huihui_ new],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/117/202204270551339834.html
The sidebar is recommended
- vue2. How to register and login with 0 + koa2 + mongodb
- How to set the background color for individual pages in Vue cli
- Vue2 how to load more data on the scroll bar
- How to use margin and padding in CSS
- How does vue2x implement the vueslidershow function of the responsive adaptive rotation component plug-in
- How does vue2 recursive component implement tree menu
- How to use the three selectors of CSS
- Same blog, different styles -- hexo alternative construction
- Optimize nginx HTTPS latency - see how I can speed up nginx by 30%?
- The development model in the era of consumer Internet only transfers industrial elements from offline to online
guess what you like
Advanced features of Vue
CSS shadow advanced, to achieve a more three-dimensional shadow effect!
Introduction to the number type method in JavaScript
Differences between nginx forward and reverse proxy
Front end schema form configuration generation scheme
Units that can be used by the rotate method of transform in CSS
Why CSS3 sticky doesn't work?
[bug resolution] webpack error: module not found Did you mean xxx
[bug resolution] can't perform a react state update on an unmounted component This is > a no-op, but it...
Remember to speed up the construction of a webpack
Random recommended
- Browser review hover element
- Vue insert iframe
- Vue realizes downloading pictures
- Some common problem-solving methods in Vue (sort out some truly effective methods that can be used in the project) (wait for continuous update and accumulation)
- About database data response to HTML page, Chinese appears? Solution to garbled code (multiple question marks)
- Ask a question about CSS selector
- When Vue jumps the route, the timer cannot be cleared in time
- Document is not defined
- Vuepress packaging deployment stepping on the road of the pit
- Vue quill editor stepping on pit record -- the echo style of rich text content is wrong
- The multi selection box of table in element is combined with paging to echo the bug step hole
- Vue project optimizes the loading speed of the first screen
- Use / deep / to report an error CSS (CSS selected expected)
- Nginx configuration
- Vue cli reverse proxy
- Vuex persistedstate plug-in - vuex persistent storage
- Automatic import of less
- Understanding and summary of CSS
- vue2. Implementation of X data response
- JavaScript content understanding
- Props in react
- JavaScript stack“
- Bootstrap blazor table component (III) intelligent generation
- Based on centos7 + nginx + Daphne + uwsgi + django3 2 + supervisor + mysql8 single architecture server production environment deployment (I)
- Differences between vue2 and vue3 named slots
- Vue3: Axios cross domain request problem
- The difference between vue2 and vue3: keep alive
- Configure nginx and SSL certificate for Django project under Windows Environment
- Ant Design Vue: a-table custom column
- Using jQuery in Vue
- Vue dynamic loading picture problem
- Icons using Alibaba vector icon library in Vue
- Java Android mobile phone automatic basic learning element positioning
- Rancher configuring HTTPS domain name to access graphic tutorial
- Building a blog with GitHub pages + hexo (7) how to delete a published article successfully solved: delete it at the same time deploy_ Git folder
- Eight blog views / hexubs
- Build a blog with GitHub pages + hexo (9) set the next theme of hexo blog, and only part of the home page is displayed (not the full text)
- Building a blog with GitHub pages + hexo (10) the next theme of hexo blog mathjax mathematical formula rendering problem
- Hexo/Github. IO configure Tencent cloud CDN
- Details of Vue to react useeffect