-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
nx serve fails running the project. #28371
Comments
You could try adding “--verbose” to see the reason. |
Thanks @e-oz for your comment, this is what I get after --verbose. But still can't figure the problem out.
|
@edvardma Looks like you have a vite timestamp file that never got cleaned up. It only exists on your local and not in the repo you linked. I couldn't reproduce the issue when I ran it. It could be related to the I'd attempt to potentially run them in a single command such as:
I think there might still be something we can do on our side to avoid loading the timestamp files |
@Coly010 Thank you for looking into this. I tried deleting and git clone and reinstalling everything again, but the issue persists. Although I have tried running the suggested approach with the: If there’s anything you can do on your side to prevent loading the timestamp files, that would be great. Let me know if you need more details from my end. Thanks again for your help! |
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> When Vite's tries to handle a `.ts` config file it builds it to JS with a `.timestamp-` suffix. These files are still picked up by Nx when they shouldn't as it's a temp file (vitejs/vite#13267). ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> Add these temp files to gitignore to prevent processing. ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #28371
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
Hi, I developed my MFE application using nx. I keep getting this error when starting serve or building. Please help me out.
Failed to process project graph. Run "nx reset" to fix this. Please report the issue if you keep seeing it.
The issue persists after running nx reset and that's why I'm reporting here.
Expected Behavior
after running nx serve-host [host or appName] , serve the project on 4200 or etc.
GitHub Repo
https://github.com/edvardma/project
Steps to Reproduce
Nx Report
nx report 1 ✘ system
NX Report complete - copy this into the issue template
Node : 20.17.0
OS : darwin-arm64
Native Target : aarch64-macos
pnpm : 9.12.1
nx (global) : 19.2.2
nx : 19.6.5
@nx/js : 19.8.0
@nx/jest : 19.6.5
@nx/eslint : 19.6.5
@nx/workspace : 19.6.5
@nx/eslint-plugin : 19.6.5
@nx/react : 19.6.5
@nx/vite : 19.8.0
@nrwl/vite : 19.6.5
@nx/vue : 19.8.0
@nx/web : 19.8.0
@nx/webpack : 19.6.5
typescript : 5.5.4
Registered Plugins:
@nx/vite/plugin
@nx/eslint/plugin
The following packages should match the installed version of nx
To fix this, run
nx migrate [email protected]
Failure Logs
Failed to process project graph. Run "nx reset" to fix this. Please report the issue if you keep seeing it.
Pass --verbose to see the stacktraces.
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: