小编hey*_*Joe的帖子

node_modules/@types/node/index.d.ts(20,1): 错误 TS1084: 无效的“引用”指令语法

我有打字稿编译的问题。smbd 遇到过吗?

node_modules/@types/node/index.d.ts(20,1): 错误 TS1084: 无效的“引用”指令语法。

tsconfig.json:

{
    "compileOnSave": false,
    "compilerOptions": {
        "sourceMap": true,
        "outDir": "./dist",
        "rootDir": "./app",
        "target": "es6",
        "module": "commonjs",
        "declaration": false,
        "noImplicitAny": false,
        "removeComments": true,
        "emitDecoratorMetadata": true,
        "experimentalDecorators": true,
        "listFiles": false,
        "skipLibCheck": true
    },
    "include": [
        "./app/**/*.ts"
    ]
}
Run Code Online (Sandbox Code Playgroud)

package.json 中的打字稿版本: "typescript": "^2.6.1"

compilation node.js typescript tsconfig

31
推荐指数
6
解决办法
3万
查看次数

标签 统计

compilation ×1

node.js ×1

tsconfig ×1

typescript ×1