typescript-library-starter
typescript-library-starter copied to clipboard
Build fails if I set composite to true in compilerOptions.
I want to reference the package under development in another project using the Project Reference. But when I set composite to true, I will get the following compilation error.
Appreciate the help!
Using TypeScript 3.0.3 from /Users/yangzhang/Documents/workspace/FinanceJs/node_modules/typedoc/node_modules/typescript/lib
/Users/yangzhang/Documents/workspace/FinanceJs/node_modules/typedoc/node_modules/typescript/lib/typescript.js:14077
return path.replace(backslashRegExp, ts.directorySeparator);
^
TypeError: Cannot read property 'replace' of undefined
at Object.normalizeSlashes (/Users/yangzhang/Documents/workspace/FinanceJs/node_modules/typedoc/node_modules/typescript/lib/typescript.js:14077:21)
at getCommonSourceDirectory (/Users/yangzhang/Documents/workspace/FinanceJs/node_modules/typedoc/node_modules/typescript/lib/typescript.js:82777:68)
at verifyCompilerOptions (/Users/yangzhang/Documents/workspace/FinanceJs/node_modules/typedoc/node_modules/typescript/lib/typescript.js:84318:27)
at Object.createProgram (/Users/yangzhang/Documents/workspace/FinanceJs/node_modules/typedoc/node_modules/typescript/lib/typescript.js:82743:9)
at Converter.convert (/Users/yangzhang/Documents/workspace/FinanceJs/node_modules/typedoc/dist/lib/converter/converter.js:109:26)
at CliApplication.Application.convert (/Users/yangzhang/Documents/workspace/FinanceJs/node_modules/typedoc/dist/lib/application.js:84:37)
at CliApplication.bootstrap (/Users/yangzhang/Documents/workspace/FinanceJs/node_modules/typedoc/dist/lib/cli.js:62:32)
at CliApplication.Application [as constructor] (/Users/yangzhang/Documents/workspace/FinanceJs/node_modules/typedoc/dist/lib/application.js:44:15)
at new CliApplication (/Users/yangzhang/Documents/workspace/FinanceJs/node_modules/typedoc/dist/lib/cli.js:38:42)
at Object.<anonymous> (/Users/yangzhang/Documents/workspace/FinanceJs/node_modules/typedoc/bin/typedoc:4:1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `tsc --module commonjs && rollup -c rollup.config.ts && typedoc --out docs --target es6 --theme minimal --mode file src`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/yangzhang/.npm/_logs/2019-05-04T10_46_09_259Z-debug.log