如何处理Angular项目在Visual Studio Code打开报关于@Decorators的警告信息
我最近用Visual Studio Code开发Angular项目时,打开app.component.ts, 就遇到如下的警告消息:
Experimental support for decorators is a feature that is subject to change in a future release. Set the ‘experimentalDecorators’ option in your ‘tsconfig’ or ‘jsconfig’ to remove this warning.ts(1219)
解决办法:
在项目根目录的tsconfig.json文件里,加入如下设置:
/*This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience.It is not intended to be used to perform a compilation.To learn more about this file see: https://angular.io/config/solution-tsconfig.
*/
{"files": [],"references": [{"path": "./tsconfig.app.json"},{"path": "./tsconfig.spec.json"}],"compilerOptions": {"experimentalDecorators":true,"emitDecoratorMetadata": true}
}
关掉所有文件,进入Angular项目根目录,code .重启Visual Studio Code,错误消失:
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
如何处理Angular项目在Visual Studio Code打开报关于@Decorators的警告信息相关推荐
- Visual Studio Code打开项目
Visual Studio Code打开项目:
- Visual Studio Code 打开程序文件中文乱码解决方法
文章原始地址: http://feotech.com/?p=76 \ 使用Visual Studio Code打开程序文件后对应的中文乱码,造成这种现象的原因是文件的编码方式不同. 可以通过调整打开文 ...
- Visual Studio Code打开终端控制台
刚学习Node.js开发,使用vscode开发工具.一开始使用Windows命令窗口输出Node结果,但是觉得太麻烦了,每次都要从vscode开发工具切换到Windows命令窗口,来来回回. 然后想, ...
- mac os系统使用Visual Studio Code打开浏览器查看HTML文件
command+shift+p 搜索 Configure Task Runner. 回车之后打开 tasks.json,修改一下: {"version": "0.1.0& ...
- visual studio code打开预览.md文件
安装完毕记得重启才会生效 这里有该插件,说明安装成功,点开.md文件就可以预览 tips: Markdown Shortcuts插件也可以 Ctrl + Shift + V 预览效果 按键盘" ...
- 如何使用 Visual Studio Code 调试 Angular Schematics 实现
How to Debug an Angular Schematic using Visual Studio Code 能够在代码执行时调试和遍历代码是我们开发工作流程的基础.这是一项必不可少的功能,使 ...
- Visual Studio Code里关于ESLint的错误消息
我使用Visual Studio Code打开一个nodejs项目时,遇到这个错误消息: Failed to load the ESLint library for the document 按照其提 ...
- Visual Studio Code 使用 ESLint 增强代码风格检查 - gyzhao - 博客园
前言 在团队协作开发中,为了统一代码风格,避免一些低级错误,应该设有团队成员统一遵守的编码规范.很多语言都提供了Lint工具来实现这样的功能,JavaScript也有类似的工具:ESLint.除了可以 ...
- Visual Studio Code 开发 .NET Core 看这篇就够了
来源:依乐祝 cnblogs.com/yilezhu/p/9926078.html 在本文中,我将带着大家一步一步的通过图文的形式来演示如何在Visual Studio Code中进行.NET Cor ...
最新文章
- 【C++】多线程(链式、循环队列)实现生产者消费者模式
- idel 智能提示_intellij idea设置代码自动提示快捷键的详细方法.
- 【精解】Exchange Server 2007群集连续复制
- linux mkdir错误,thinkphp在linux下报mkdir()错误
- unity3d 使用GL 方式画线
- oracle update范例,oracle 12c单范例数据库打12.1.0.2.4补丁记录
- ligerGrid简单例子--通过后台转数据
- [转]厚积薄发,有的放矢--李开复博士给中国计算机系学生的建议
- 【SQL】BETWEEN
- webfigure显示到网页上所踩过的坑--自写servlet
- 多线程设计实例——Monte Carlo法估算圆周率
- python opencv 获取图片清晰度
- 聊一聊为什么在浏览器输入http://localhos8080会出现tomcat后台服务器的界面
- 华为电脑Linux进pe,华为 matebook X Pro怎样用PE重装系统win10
- 晶圆在低温探针台中的安装方式——N-Grease真空油脂和夹具
- 三菱伺服器J3、J4、JE中文调试软件
- 刚写完排序算法,就被开除了…
- 主板前置USB插线接法大全
- 流程引擎之KIE项目简介
- 自然码辅助码在线查询网站
热门文章
- exit与return区别
- bridge pattern -- 桥接模式
- 中文版putty后门事件的曝光过程及我们所受到的报复
- 使用docker中的apline部署自己的golang的后端代码(添加制作静态服务器的注意点)...
- 【11.5校内测试】【倒计时5天】【DP】【二分+贪心check】【推式子化简+线段树】...
- 区块链分布式云存储项目盘点
- [转]Laravel与bootstrap-editable实现table的行内编辑
- 二叉查找树-优化版,使用了指针引用
- 文献记录(part3)--Clusterpath An Algorithm for Clustering using Convex Fusion Penalties
- 文献记录(part2)--A Dykstra-like algorithm for two monotone operators