-
Notifications
You must be signed in to change notification settings - Fork 492
Recompilation does not happen in subfolder? #228
Comments
I can confirm this behaviour. After error I must restart dev server. Moreover dev server stops also when I have lint error in test files. |
Regarding the recompile issue: Regarding the linter:
|
Ok thanks, reasoning is clear, but the behaviour is not very intuitive. |
In my opinion there is nothing wrong in linting test files by dev server but dev server should recover after fixing typo. It's not acceptable to restart dev server after fixing file. Also dev server should not compile test files - it could consume a lot of time and resources - most of time you have tests running so why double check test files? |
Actually, they don't get compiled, it just performs a type check. It's a bit unlikely here - As mentioned above, the plugin that runs type checking and linting is triggered by a |
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
npm ls react-scripts-ts
: [email protected]node -v
: v8.2.1npm -v
: 5.3.0yarn --version
: 1.3.2Then, specify:
Steps to Reproduce
create-react-app react-scripts-ts-non-working-subdirs --scripts-version=react-scripts-ts
cd react-scripts-ts-non-working-subdirs/src
mkdir -p whatever && cd whatever
echo 'window.whatever = false' > willfail.ts
cd .. && yarn start
(same with npm start)(1,8): Property 'whatever' does not exist on type 'Window'.
willfail.ts
in Editor (Visual studio code, Atom, Vim), comment the failing line out. Click save, nothing happensExpected 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
The text was updated successfully, but these errors were encountered: