question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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/cli@11.0.2
β”œβ”€β”€ @compodoc/compodoc@1.1.11
β”œβ”€β”€ @nestjs/cli@7.5.3
β”œβ”€β”€ @ngxs/cli@2.0.0
β”œβ”€β”€ @nrwl/cli@10.4.4
β”œβ”€β”€ asar@3.0.3
β”œβ”€β”€ clang-format@1.4.0
β”œβ”€β”€ commitizen@4.2.2
β”œβ”€β”€ cz-conventional-changelog@3.3.0
β”œβ”€β”€ firebase-tools@8.16.2
β”œβ”€β”€ madge@3.12.0
β”œβ”€β”€ npm@6.14.9
β”œβ”€β”€ npm-check-updates@10.2.2
β”œβ”€β”€ svgo@1.3.2
β”œβ”€β”€ typescript@4.1.2
└── yarn@1.22.10

    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / β–³ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

24reactions
cyrus-zacommented, 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

4reactions
cratescommented, Feb 3, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove directory which is not empty - node.js - Stack Overflow
In my case this function stays into the return of another function that's why I am calling it with this. const fs =...
Read more >
[AOS Only] What to do when /home partition or /home/nutanix ...
This article describes ways to safely free up space if /home partition or /home/nutanix directories of a CVM become full or do not...
Read more >
How To Work with Files using the fs Module in Node.js
The unlink() function accepts one argument: the file path of the file you want to be deleted. Warning: When you delete the file...
Read more >
File system | Node.js v19.3.0 Documentation
The fs/promises API provides asynchronous file system methods that return promises. The promise APIs use the underlying Node.js threadpool to perform file ......
Read more >
Filesystem β€” ESP8266 Arduino Core documentation
This allows to use file system to store sketch data, configuration files, ... Returns true if the directory was successfully removed, false otherwise....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found