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.

Recompilation does not happen in subfolder? #228

@gytisgreitai

Description

@gytisgreitai

Is this a bug report?

Yes

Can you also reproduce the problem with npm 4.x?

Yes

Which terms did you search for in User Guide?

Failed to compile, subdirs.

Found probably related closed issue: #187

Environment

  1. npm ls react-scripts-ts: react-scripts-ts@2.12.0
  2. node -v: v8.2.1
  3. npm -v: 5.3.0
  4. yarn --version: 1.3.2

Then, specify:

  1. Operating system: Mac OS High Sierra 10.13

Steps to Reproduce

  1. create-react-app react-scripts-ts-non-working-subdirs --scripts-version=react-scripts-ts
  2. cd react-scripts-ts-non-working-subdirs/src
  3. mkdir -p whatever && cd whatever
  4. echo 'window.whatever = false' > willfail.ts
  5. cd .. && yarn start (same with npm start)
  6. Will fail to compile (1,8): Property 'whatever' does not exist on type 'Window'.
  7. Open willfail.ts in Editor (Visual studio code, Atom, Vim), comment the failing line out. Click save, nothing happens
  8. Open any other file that is directly in src (eg. App.tsx, index.tsx) hit save. Compilation restarts all good

Expected Behavior

I would expect that changed to ts files in subfolders would trigger a recompile

Actual Behavior

Recompilation does not happen if there are errors and files that are in subfolder are saved

Reproducible Demo

https://github.com/gytisgreitai/-react-scripts-ts-non-working-subdirs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions