node.js - 如何让 VS Code 识别 tsconfig.json?
问题描述
在我的 node.js 项目.ts
文件中,我有
#date_created: Date = new Date();
但是VSCode说
Private identifiers are only available when targeting ECMAScript 2015 and higher.ts(18028)
但是在文件夹的根目录中,我有这个tsconfig.json
文件
{
"compilerOptions": {
"outDir": "./dist/",
"noImplicitAny": true,
"module": "ES6",
"target": "ES6",
"lib": ["ES6"],
"allowJs": false
}
}
感觉就像 VS Code 没有正确阅读这个。我怎样才能解决这个问题?
解决方案
推荐阅读
- multithreading - Wildfly 10:尝试实现 Java 并发实用程序时出错
- django - 如何根据表达式过滤对象
- javascript - 使用 node 或 express 返回 json 格式的正确方法
- matlab - 标量时间向量积的可绘制性
- java - iText 7.1.5 从 CSV 获取表格的实际宽度
- jquery - 如何修复 Google Chrome 移动加载页面上的黑屏
- python - Python - 为采样整数创建倾斜的离散正态概率分布
- php - Symfony 4 中的自定义 YAML 配置文件
- android - 从 DataBinding 实例中查找类似视图
- java - 在 Activiti 中获取带有服务任务的流程图