Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails if I set composite to true in compilerOptions. #291

Open
yang-zhang-syd opened this issue May 4, 2019 · 0 comments
Open

Build fails if I set composite to true in compilerOptions. #291

yang-zhang-syd opened this issue May 4, 2019 · 0 comments

Comments

@yang-zhang-syd
Copy link

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! financejs@0.0.0 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 financejs@0.0.0 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant