Cannot use `composite` tsconfig.json setting
Created by: osdiab
Is this a bug report?
Yes
Did you try recovering your dependencies?
Yes
Which terms did you search for in User Guide?
typescript composite isolatedModules
Environment
System: OS: macOS 10.14.2
CPU: (4) x64 Intel(R) Core(TM) i5-8210Y CPU @ 1.60GHz
Binaries:
Node: 11.4.0 - ~/.nvm/versions/node/v11.4.0/bin/node
Yarn: 1.16.0 - /usr/local/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v11.4.0/bin/npm
Browsers:
Chrome: Not Found
Firefox: Not Found
Safari: Not Found
npmPackages:
react: Not Found
react-dom: Not Found
react-scripts: Not Found
npmGlobalPackages:
create-react-app: Not Found
Steps to Reproduce
- Run
yarn create react-app my-app --typescript
- add
composite: true
totsconfig.json
- run
yarn start
, getOption 'composite' cannot be specified with option 'isolatedModules'. TS5053
- Remove
isolatedModules
line fromtsconfig
- run
yarn start
,create-react-app
re-addsisolatedModules
and you get the same error
Expected Behavior
I could use the composite
flag
Actual Behavior
I can't use the composite flag
Reproducible Demo
Above steps will reproduce this, pretty trivial.
This is potentially equally as much a typescript
issue, though this is not really big to me—i just want to be able to build all my packages in my monorepo in one command, rather than having a separate invocation of tsc --build
for my website package. But thought I'd log the issue here.