【发布时间】:2016-05-03 03:26:17
【问题描述】:
我正在尝试使用 TypeDoc 生成 doc 文件。当我使用以下命令运行 TypeDoc 时:
/node_modules/.bin/typedoc --module system --target ES5 --exclude *.spec.ts* --experimentalDecorators --out typedoc app/ --ignoreCompilerErrors
它作为输出给出:
Using TypeScript 1.6.2 from /development/node_modules/typedoc/node_modules/typescript/lib
Error: /development/app/angular2/app.ts(1)
Cannot find module 'angular2/core'.
Error: /development/app/angular2/app.ts(2)
Cannot find module 'angular2/upgrade'.
Error: /development/app/angular2/app.ts(3)
Cannot find module 'angular2/platform/browser'.
Error: /development/app/angular2/app.ts(5)
tsconfig.json
{
"compilerOptions": {
"target": "ES5",
"module": "system",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false
},
"exclude": [
"node_modules"
]
}
这里是否缺少某种参数来包含库或.d.ts. 文件?
【问题讨论】:
-
可能是一些与 tsconfig.json 相关的问题。可以发一下吗?
-
我已将我的 tsconfig,json 添加到问题中
标签: angular typescript typedoc