Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
无法在 getRequiredModulePath 的 NodeObject.getText 处读取未定义的属性“文本”
生成浏览器应用程序包时发生错误 阶段 设置 什么可能导致此错误 来自控制台的信息 生成浏览器应用程序包 阶段 设置 类型错误 无法读取未定义的属性 文本 在 NodeObject getText opt app root src node
angular
typescript
tsc
angularcompiler
angularcompilercli
TypeScript 编译并保留注释
我希望在生成的 javascript 文件中保留完整的注释 默认情况下编译器会删除它们 有 tsc 参数吗 用例是保留 参考路径的 进行大胆的单元测试 自 2015 年起您可以创建tsconfig json在你的项目中并添加 removeC
typescript
tsc
为什么我在 VSCode 中收到 TypeScript 错误,但在 tsc 命令中却没有收到错误?
VS Code 向我展示了 TS 错误 这些错误突然成为一个问题 但以前工作正常 当我跑步时npx tsc我没有收到 TS 错误 项目编译没有 TS 错误 当我在 PHPStorm 中打开文件时 没有收到 TS 错误 这些错误可能来自哪里
typescript
VisualStudioCode
tsc
如何让Typescript编译器将编译后的js输出到不同的目录?
我对 TypeScript 相当陌生 现在我的项目结构中的几个地方都有 ts 文件 app scripts app ts classes classA ts classB ts controllers controllerA ts cont
javascript
typescript
tsc
将字符串数组转换为 TypeScript 类型
假设我有一个字符串数组 const s foo rolo zoombaz 所以我会得到 type v foo string rolo string zoombaz string 奖金 理想情况下 我希望将它们映射到驼峰式大小写 所以如果我有
typescript
tsc
typescript30
RxJS5 TypeScript 打字失败
I run tsc在我的项目中 我收到与 RxJS5 库相关的这些错误 tsc node modules rxjs observable FromEventObservable d ts 11 39 error TS2304 Cannot
nodejs
typescript
rxjs
rxjs5
tsc
打字稿错误 - 错误:找不到模块“typescript/tsc.js”
我不知道如何使我的 tsc 命令工作 tsc module js 472 throw err Error Cannot find module typescript tsc js at Function Module resolveFile
nodejs
typescript
module
tsc
将数组映射到接口
假设我有一个如下所示的数组 const options name foo type boolean name bar type string name bar should be baz not bar type number 我希望使用这
typescript
typescripttypings
typescript20
tsc
检索函数的返回类型而不调用该函数
假设我在 TypeScript 中有一个这样的函数 export const foo function return a 1 b true c bar 如果我将此函数导入到另一个文件中 import foo from foobar 我的问题
typescript
typescripttypings
typescript20
tsc
tsc 似乎没有从 tsconfig.json 中选择“排除”选项
我正在努力让 tsc 获取我的 tsconfig json 文件并编译我的 ts 文件 它遇到了重复错误 我试图通过 tsconfig json 来避免这些错误 I have package json tsconfig json typin
typescript
angular
tsc
“npx tsc --version”报告虚拟机内不同的 TypeScript 版本
我希望能够跑步npx tsc在我的主机 来宾操作系统上的项目中 但客人正在使用不同的 旧的 版本tsc 我不确定它是从哪里来的 我的设置 主机操作系统 Windows 10 来宾操作系统 Debian 9 我正在使用 VirtualBox
nodejs
typescript
npm
tsc
npx
Typescript noEmit 用例
用途是什么noEmit在打字稿中 我很感兴趣 因为我想看看是否可以使用它进行开发 在其中编译并运行编译后的代码 而不将它们输出到文件系统上 这样会更有效 编辑 也许这会很直接 我可以使用noEmit打字稿中的标签来编译和运行代码而不将它们输
typescript
tsc
tsconfig
从 Java 运行 TypeScript 编译器
我正在尝试从我的 Java 应用程序运行 TypeScript 编译器 首先 我试图弄清楚是否可以在没有 Node js 的情况下从命令行运行编译器 jsc tsc js 但这样我就不会收到任何错误 也不会提供帮助 jsc tsc js m
Java
javascript
nodejs
typescript
tsc
进行更改后 ts-node-dev 不会重新启动
这是我的文件 包 json scripts generate interfaces ts node src cli generate interfaces ts dist npm run generate interfaces rm rf
nodejs
typescript
nodemon
tsc
tsnode
使用 TypeScript 的条件类型
假设我有这个 type TypeMapping Boolean boolean String string Number number ArrayOfString Array
typescript
tsc
typescript30
如何制作不需要在导入中添加“.default”的 ESM / CJS 模块
我可以设置我的 package json 以对 CJS 和 ESM 使用不同的导入 main dist cjs index js module dist esm index js 我还可以设置 TypeScript 编译器来创建两个发行版
typescript
babeljs
es6modules
CommonJS
tsc
如果函数声明时没有使用“const”关键字,函数调用签名会出错
我是 TypeScript 新手 正在学习中呼叫签名 如果我将函数存储为let or const关键词 像这样 呼叫签名 type Foo desc string arg string void 如果我创建一个函数并使用它存储它let or
typescript
tsc
SystemJS:加载构建文件
我的 SystemJS 文件如下所示 function global map tells the System loader where to look for things var map angular2 boot app dist a
angular
systemjs
tsc
tsc 未被识别为内部或外部命令
我在 Windows7 上使用节点版本 6 9 2 和 npm 版本 5 4 2 我已经使用命令安装了打字稿npm install typescript g 但是 当我使用命令运行演示文件时 tsc 我收到错误 tsc is not rec
nodejs
typescript
tsc
在不相关的文件中“无法重新声明块范围变量”
有一个简单的 TS 包用作 CommonJS 模块并且没有导出 TS文件被编译为同名的JS文件并用作require package option foo tsconfig json compilerOptions target es5 选项
typescript
tsc
«
1
2
3
»