Cannot use `composite` tsconfig.json setting
See original GitHub issueIs 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.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:7
- Comments:36
Top Results From Across the Web
TSConfig Reference - Docs on every TSConfig option
If composite is set, the default is instead the directory containing the tsconfig.json file. When TypeScript compiles files, it keeps the same directory ......
Read more >tsconfig.json: not input were found in config file?
It probably means that the Typescript compiler is unable to find your source files. You can add an include configuration in your ...
Read more >Configuring a basic TypeScript composite project - cspotcode
anything else, such as ts-node dev scripts or an ./examples directory, is handled by the root tsconfig file, and is not compiled. tsconfig.json....
Read more >Incremental (composite) Typescript does not work for test files
Please try adding tsconfig.main.json and tsconfig.test.json to File name patterns of TypeScript config file type (in Settings | Editor | File Types) ...
Read more >@rollup/plugin-typescript - npm
Start using @rollup/plugin-typescript in your project by running `npm i ... options and instead defers to the values set in tsconfig.json .
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is still an issue and should not be closed
Shouldn’t be closed.