Nx: Warning: Fell back to using 'fs' to identify file_path as deleted

Created on 4 Dec 2020  ยท  2Comments  ยท  Source: nrwl/nx

Current Behavior


I renamed a file, and now I have a warning in the terminal that suggests to file a bug report.

Expected Behavior



No warning in the terminal when removing/renaming workspace files, and running commands after that.

Steps to Reproduce


Rename a file. For example apps/some-app-e2e/src/fixtures/example.json -> apps/some-app-e2e/src/fixtures/credentials.json.
Run command npx nx e2e some-app-e2e.




Failure Logs

ng run zzz-e2e:e2e --watch 
Warning: Fell back to using 'fs' to identify apps/zzz-e2e/src/fixtures/example.json as deleted. Please open an issue at https://github.com/nrwl/nx so we can investigate.

Environment


Cli is installed as a global dependency.

$ sudo npm list -g --depth=0
[sudo] password for suser: 
/usr/lib
โ”œโ”€โ”€ @angular/[email protected]
โ”œโ”€โ”€ @compodoc/[email protected]
โ”œโ”€โ”€ @nestjs/[email protected]
โ”œโ”€โ”€ @ngxs/[email protected]
โ”œโ”€โ”€ @nrwl/[email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ””โ”€โ”€ [email protected]

    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / โ–ณ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 11.0.3
Node: 14.15.1
OS: linux x64

Angular: 11.0.3
... animations, cli, common, compiler, compiler-cli, core
... elements, forms, language-service, platform-browser
... platform-browser-dynamic, router
Ivy Workspace: Yes

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.1001.7
@angular-devkit/build-angular      0.1100.3
@angular-devkit/core               11.0.3
@angular-devkit/schematics         11.0.3
@angular/cdk                       11.0.1
@angular/flex-layout               11.0.0-beta.33
@angular/material                  11.0.1
@angular/material-moment-adapter   11.0.1
@schematics/angular                11.0.3
@schematics/update                 0.1100.3
rxjs                               6.6.3
typescript                         4.0.5
>  NX  Report complete - copy this into the issue template

  nx : Not Found
  @nrwl/angular : 10.4.4
  @nrwl/cli : 10.4.4
  @nrwl/cypress : 10.4.4
  @nrwl/eslint-plugin-nx : 10.4.4
  @nrwl/express : Not Found
  @nrwl/jest : 10.4.4
  @nrwl/linter : 10.4.4
  @nrwl/nest : 10.4.4
  @nrwl/next : Not Found
  @nrwl/node : 10.4.4
  @nrwl/react : Not Found
  @nrwl/schematics : Not Found
  @nrwl/tao : 10.4.4
  @nrwl/web : Not Found
  @nrwl/workspace : 10.4.4
  typescript : 4.0.5
core bug

Most helpful comment

Also running into this after deleting unused files from libs/

EDIT: running git add . fixes it. Seems like nx is using git cache or something

All 2 comments

Also running into this after deleting unused files from libs/

EDIT: running git add . fixes it. Seems like nx is using git cache or something

Also running into this issue when running a React project with version: 10.3.1

Warning: Fell back to using 'fs' to identify tools/tsconfig.generated.json as deleted. Please open an issue at https://github.com/nrwl/nx so we can investigate.
Was this page helpful?
0 / 5 - 0 ratings