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
Daemon error #8950
Comments
I am seeing this as well. I run npx create-nx-workspace my-project --profile=react It seems to complete the creation of the workspace, installs everything etc, but at the very end of the operation it throws this error:
So I install the nx cli and run nx reset. That seems to work (I have not tested the workspace fully, but at least the error message says it completed successfully): C:\Users...etc>nx reset
This might take a few minutes.
Note this is on Windows. I've never seen this on my Macs. Thanks :) |
Update: the issue isn't resolved by running nx reset. When I start my-project, the error repeats. C:...etc>nx run my-project:serve
Log file with the error: C:...\my-project\node_modules.cache\nx\d\daemon-error.log The project does serve, but this error persists whenever your run a command. |
For what it's worth, this also appears in the console when I serve the project: WARNING in DefinePlugin I am running node 14.18.1 |
I found out that this has something to do with your workspace setup. If you are using git as version control the project graph internally uses git-base-file-hasher which works fine for both symstems: Windows and MacOS. If you are not using git (e.g. TFVC) the project-graph falls back to a node-based-file-hasher which delivers on Windows paths like "dir\\subdir\\file.ts" instead git-based and node-based hasher on MacOS deliver paths like "dir/subdir/file.ts". With a wrong file path the file is not considered as part of any project and therefore the cache does not have any files inside the projects. @FrozenPandaz this should be fixable quite easily on short term with my description, isn't it? |
No, I'm not on Windows, I am on Linux. |
I am also experiencing the same issue especially while starting up a react app, even after running the |
I'm having the same issue when I running the command to create a docker image @nx-tools/nx-docker:build |
Is this confirmed as being related? I see the DefinePlugin error after migrating to nx 14.1.9, but I am not currently seeing any issues with the daemon. |
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. |
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. |
Current Behavior
When running this command:
nx serve erp --configuration development --host 0.0.0.0 --disable-host-check
I got this error:
Log file with the error: ./node_modules/.cache/nx/d/daemon-error.log
Please file an issue at https://github.com/nrwl/nx
Nx Daemon is going to be disabled until you run "nx reset".
Expected Behavior
Steps to Reproduce
Failure Logs
Environment
daemon-error.log
The text was updated successfully, but these errors were encountered: