TypeDoc找不到Angular2模块
发布时间:2020-12-17 07:11:51 所属栏目:安全 来源:网络整理
导读:我正在尝试使用TypeDoc生成doc文件.当我使用follwing命令运行TypeDoc时: /node_modules/.bin/typedoc --module system --target ES5 --exclude *.spec.ts* --experimentalDecorators --out typedoc app/ --ignoreCompilerErrors 它给出了输出: Using TypeS
我正在尝试使用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" ] } 我在这里缺少某种参数来包含libs或.d.ts.文件? 解决方法
我尝试使用commonjs模块,它工作正常.
typedoc --experimentalDecorators --target 'es5' --module 'commonjs' --out doc-destination/ src/ (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |