Getting @swc/core@npm:1.5.20 couldn't be built successfully logs can be found here:
Hi, earlier we could remove yarn.lock, node-modules; run yarn and then the project could be restarted. Now, with the new version, after removing yarn.lock, removing node modules it is giving the swc error. Subsequently yarn nx start twenty-server fails.
How to fix?
![No description](https://cdn.answeroverflow.com/1245320065188888628/Screenshot_2024-05-29_at_15.45.01.png)
4 Replies
Unknown Userβ’4mo ago
Message Not Public
Sign In & Join Server To View
npx nx run {package}:{command}
example: npx nx run twenty-front:start
@arnavsaxena you should never delete yarn.lock π
Get back to the latest version of main and make sure you have no git diff, it should be working
You can delete your node_modules, they will be re-installed by running yarn
It worked. The problem was :
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
[Failed to process project graph.
Fixed it with npx nx reset. Shouldn't have to remove yarn.lock π
Thank you so much for the prompt responses. Our team is rooting for you guys!
You are welcome!