我有打字稿编译的问题。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"