Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rfprod opened this issue Dec 4, 2020 · 13 comments · Fixed by #5031
Closed

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

rfprod opened this issue Dec 4, 2020 · 13 comments · Fixed by #5031
Labels

Comments

@rfprod
Copy link
Contributor

rfprod commented Dec 4, 2020

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
@cyrus-za
Copy link

cyrus-za commented Dec 9, 2020

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

@FrozenPandaz FrozenPandaz added the scope: core core nx functionality label Dec 11, 2020
@R4VANG3R
Copy link

R4VANG3R commented Dec 18, 2020

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.

@s4m0r4m4
Copy link

I ran into this problem as well. To reproduce, I moved a file using drag-n-drop in the VS Code file explorer on the left. Then ran nx build <my proj> and received the following two error messages:

  • Warning: Fell back to using 'fs' to identify apps/canvas-render-test/src/services/test.service.spec.ts as deleted. Please open an issue at https://github.com/nrwl/nx so we can investigate.
  • Warning: Fell back to using 'fs' to identify libs/lib-images/src/lib/interfaces/aim-dimensioned-located-item.interface.ts as deleted. Please open an issue at https://github.com/nrwl/nx so we can investigate.

Potentially an issue on the VS Code side, since they have also been having issues changing import paths when I do this, related issue here: microsoft/TypeScript#40386

@crates
Copy link

crates commented Feb 3, 2021

Just wanted to say, me too. I renamed a library (including everything that referenced it), and everything still broke.

@crates
Copy link

crates commented Feb 3, 2021

Looks like the error self-resolved after a successful git commit.

bekos added a commit to bekos/nx that referenced this issue Mar 14, 2021
@miluoshi
Copy link
Contributor

This warning is really annoying and I honestly don't understand why I get it for deleted files.

But what I found when searching in nrwl/nx codebase was that it should be removed by v10.2 as this jsdoc line for a function printing this warning is saying. @vsavkin can it be removed already? Thanks

@bekos
Copy link
Contributor

bekos commented Mar 14, 2021

@miluoshi I prepare a PR that is going to resolve the root cause of this warning, be patient 😃

@miluoshi
Copy link
Contributor

@bekos awesome, thanks! 🚀

bekos added a commit to bekos/nx that referenced this issue Mar 15, 2021
vsavkin pushed a commit that referenced this issue Mar 16, 2021
@ghost
Copy link

ghost commented Aug 2, 2021

I see this issue everytime I define a new story " Fell back to using 'fs' to identify". What is the concrete solution to it?

@crates
Copy link

crates commented Aug 2, 2021

@mrsshilpad - For me, it went away permanently after a successful commit. Try updating your Nx libraries and committing to see if that helps.

@ghost
Copy link

ghost commented Aug 2, 2021

Thanks! Yes, it fixed for me too but then I wasn't able to see my component in storybook, so I had to restart everything. How is committing a concrete solution? Whats the logic behind it? What if I am not ready to commit anything?

@ghost
Copy link

ghost commented Aug 2, 2021

I see my stories missing every now and then, guess this is different issue. But annoying.

@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants