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
project-graph cannot be generated in workspaces running on Windows and without git #9584
Labels
Comments
FrozenPandaz
pushed a commit
that referenced
this issue
Mar 29, 2022
sidmonta
pushed a commit
to sidmonta/nx
that referenced
this issue
Apr 2, 2022
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Current Behavior
When running any operation that depends on a project-graph being build (e.g. running dep-graph for visualisation in the browser or trying to build libraries with dependencies), it will fail if the nx-workspace runs on a Windows operating system and is not using git.
Expected Behavior
Generation of the project-graph should work on windows without using a git-repo tool
Steps to Reproduce
1.) Create a new nx-workspace on windows machine
2.) Make sure the workspace does not contain .git-Folder or .gitignore files
3.) Have a least two libraries in the workspace, with one having a typescript import for the other
4.) run "nx graph"
-> Dependency is not shown
Failure Logs
Instead of posting failure logs I will just detail on my findings (actually I was able to fix the problem by patching the "file-map-utils.js" in the @nrwl/workspace package).
What I reverse-engineered:
--> Filling up this map does not work on windows systems since the keys will never match the paths from the file-descriptions
Environment
Node : 14.18.3
OS : win32 x64
npm : 6.14.15
nx : 13.9.4
@nrwl/angular : 13.9.4
@nrwl/cypress : 13.9.4
@nrwl/workspace : 13.9.4
typescript : 4.5.5
rxjs : 6.6.7
Community plugins:
@dcs/builders: 2.0.1 (you won't find this on a public repo)
@dcs/schematics: 2.0.2 (you won't find this on a public repo)
The text was updated successfully, but these errors were encountered: