解决Vue问题:TypeScript intellisense is disabled on template. To enable, configure `“jsx“...
2023-09-11 14:15:12 时间
问题分析
TypeScript intellisense is disabled on template. To enable, configure `"jsx": "preserve"` in the `"compilerOptions"` property of tsconfig or jsconfig. To disable this prompt instead, configure `"experimentalDisableTemplateSupport": true` in `"vueCompilerOptions"` property.volar
出现原因
在vue项目中新建组件后,模板(template)上已禁用TypeScript智能感知。
解决方法
通过问题给的提示(见上图),在根目录下找到jsconfig.json文件,在tsconfig或jsconfig的“compilerOptions”属性中配置“jsx”:“preserve”。
添加“jsx”:“preserve”,
然后问题解决
不再出现问题提醒
相关文章
- Vue笔记:安装配置node.js及使用vue-cli创建项目
- Vue_(组件通讯)父组件向子组件传值
- Vue_(基础)Vue中的指令
- vue 加载静态图片
- VUE - vue.runtime.esm.js?6e6d:619 [Vue warn]: Do not use built-in or reserved HTML elements as component i
- [Vue @Component] Define Props on a Vue Class with vue-property-decorator
- vue-element-admin项目的mock逻辑
- [VueJS + Typescript] Decouple Dependencies Using IoC Containers in Vue with TypeScript and InversifyJS
- [Vue @Component] Define Props on a Vue Class with vue-property-decorator
- [Vue @Component] Simplify Vue Components with vue-class-component
- Vue入门教程:node安装vue命令行工具及启动项目
- 【视频】vue生命周期函数
- vue-tour快速入门:VUE项目中如何使用vue-tour新手引导指引插件?怎样使用?包含具体实例
- vue 的 render 函数的用法:new Vue({ render: h => h(App), }).$mount(‘#app‘)
- vue项目报错:warning Disallow self-closing on HTML void elements (<img/>)
- Vue CLI 4.x安装成功,但是无法运行vue-V等指令。报错vue -V 不是内部或外部命令,也不是可运行的程序或批处理文件解决方案!!!
- vue:export default 和 export 区别(difference between Vue 'export default' and 'new Vue')
- vue 选中添加样式变色
- 初始Vue、Vue模板语法、数据绑定(2022/7/3)
- Springboot+Vue实现将图片和表单一起提交到后端,同时将图片地址保存到数据库、再次将存储的图片展示到前端vue页面
- 前端MVC Vue2学习总结(二)——Vue的实例、生命周期与Vue脚手架(vue-cli)
- Vue之通过代理设置跨域访问
- 232:vue+openlayers选择左右两部分的地图,不重复,横向卷帘
- 131:vue+openlayers 去掉鼠标右键默认菜单,rightClick显示feature信息 (示例代码)
- 107:vue+openlayers 避免文字标签重叠的方法(示例代码)
- 联机事务处理OLTP(on-line transaction processing)和联机分析处理OLAP(On-Line Analytical Processing)
- Vue(八)vue 脚手架、脚手架创建项目示例
- Vue(二)vue 指令及用法举例
- Vue(一)vue 概述与用法、MVVM、绑定语法、vue 指令
- vue-tour快速入门:VUE项目中如何使用vue-tour新手引导指引插件?怎样使用?包含具体实例
- 基于Java+SpringBoot+Vue前后端分离农产品物流系统设计与实现(有视频讲解)
- Vue: vue-router路由
- Vue学习笔记——vue-router
- Vue - Webpack的使用、使用Webpack解决相应问题