Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Build fails with default tsconfig.json because of recent changes in ts-loader #156

@pettyalex

Description

@pettyalex

This change here: TypeStrong/ts-loader#621 results in the build failing because it is now using src/src as a root directory instead of src.

If anybody else gets blocked by this, the quick workaround is to change in tsconfig.json

"rootDir": "src",
to
"rootDir": ".",

To reproduce, just run create-react-app testing_app --scripts-version=react-scripts-ts and then run the build, and see:

error TS6059: File '/Users/alex.petty/src/testing_app/src/App.test.tsx' is not under 'rootDir' '/Users/alex.petty/src/testing_app/src/src'. 'rootDir' is expected to contain all source files.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions