Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
当我使用nodemon和ts-node时,为什么节点检查器没有启动?
我有一个用打字稿编写的简单节点服务器 我的 package json 配置为 scripts build tsc dev nodemon watch src e ts json exec ts node src server ts debu
nodejs
typescript
debugging
nodemon
tsnode
使用 ts-node 执行打字稿文件时出错(将项目安装为全局模块后)
使用 Windows 8 1 64 位 纱线 我正在尝试创建一个全局模块 其中包含打字稿文件并使用ts node 并且不将文件转换为js 示例项目位于github https github com gmastergreatee test t
nodejs
typescript
yarnpkg
tsnode
ts-node 找不到我的类型定义文件
当我跑步时ts node node modules jasmine bin jasmine我收到这些错误 tsc globals ts 7 12 error TS2304 Cannot find name SugarcubeState 7
nodejs
typescript
tsnode
Heroku 使用 ts-node 部署
我正在尝试部署一个示例角度通用启动器 https github com angular universal starter在赫罗库 任务npm start失败是因为它无法识别 ts node 有没有办法使用 ts node 在 Heroku
angular
heroku
angularuniversal
tsnode
ts-node 将选项传递给节点
有没有办法在调用 ts node 时将选项传递给节点 我正在尝试在 Node 中使用一个实验性功能 如果它能与 ts node 一起使用 那就太好了 这就是我目前正在做的事情 ts node src utils repl ts experi
nodejs
typescript
tsnode
如何在 TS-Node 中声明初始化全局变量?
使用网络包 const WebpackConfig plugins new Webpack DefinePlugin IS DEVELOPMENT BUILDING MODE isDevelopmentBuildingMode IS TES
nodejs
typescript
tsnode
错误表达式:在打字稿中传递给“ts.resolveTypeReferenceDirective”的非字符串值
当我尝试运行 ts node dev index ts 时 出现以下错误 我更新了我的打字稿和 ts node dev ts node 但如果我删除具有 types 的依赖项 此错误会继续弹出 XXXX 例如 types express 它
typescript
tsnode
tsnodedev
mocha 和 ts-node 找不到本地 .d.ts 文件
我有以下项目结构 typetests type test ts myproj d ts tsconfig json 我的 tsconfig json 看起来像这样 compilerOptions module commonjs module
typescript
mochajs
tsnode
ts-node 和 mocha 'TypeError [ERR_UNKNOWN_FILE_EXTENSION]:未知文件扩展名“.ts”' 错误,即使使用“ts-node/esm”加载器和 CommonJS 模块
在提出这个问题之前 我检查了类似的主题并尝试了典型的解决方案 我知道常见原因是什么 module ESXXXX 在 TypeScript 配置中 就我而言 我有错误 TypeError ERR UNKNOWN FILE EXTENSION
typescript
mochajs
tsnode
尝试通过 --experimental-loader 选项使用 mocha、ES6 模块和 ts-node
我正在尝试获取 ts node 选项 experimental loader与摩卡一起工作 但运气不佳 在我开始尝试编译 ES6 模块之前 我曾经能够通过这种方式运行 mocha 测试 test nyc reporter html moch
nodejs
typescript
mochajs
es6modules
tsnode
尝试运行 ts-node 脚本时出现未知文件扩展名“.ts”错误
我正在尝试运行在带有两个 ts 文件的常规文件夹中创建的脚本 一份包含脚本 另一份包含运行脚本的辅助函数 我还导入了更多东西 例如 axios 或表单数据 问题是 当我尝试使用 ts node 运行脚本时 节点脚本 ts 出现如下错误 Ty
javascript
typescript
tsnode
类型错误:对象原型只能是对象或 null:未定义
如果我导入如下Entity我收到帖子的主题错误 TypeError 对象原型可能只是一个对象或 null 未定义 但是如果我将导入替换为实际的Entity声明代码运行良好 Stackblitz 演示在这里 https stackblitz
javascript
nodejs
typescript
tsnode
进行更改后 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 导入到正在运行的 ts-node REPL 实例中?
我想测试一些我编写的 Typescript 代码 到目前为止 我知道做到这一点的最好方法是运行ts node my file name ts 不过 我想让它更具交互性 类似于 Python REPL 允许您导入模块 然后根据需要从 REPL
typescript
import
module
readevalprintloop
tsnode
扩展 Typescript 中的内置类型
我有以下结构 project types global d ts string d ts wdio d ts src Models Resources Components Extensions string ts tsconfig jso
javascript
typescript
webdriverio
typescript30
tsnode