我正在尝试使用TypeDoc生成doc文件.当我使用follwing命令运行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" ] }
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。