local setup not working . npm run setup:project giving error
node - 20.8.0
pnpm - 8.9.0
Pulled the latest code today
After cloning the repo, running the npm run setup:project getting the following error
82/86 succeeded [82 read from cache]
× 4/86 targets failed, including the following:
- nx run @novu/ee-dal:build
- nx run @novu/ee-translation-web:build
- nx run @novu/ee-auth:build
- nx run @novu/ee-billing-web:build
View structured, searchable error logs at https://nx.app/runs/jhdJxgIJbe
15 Replies
@trex00adi
Please follow these steps:-
npm run clean
after successful completion of this command run npm run setup:project
Hi @Pawan Jain , Still getting the same error
NX Ran target build for 91 projects (41s)√ 82/86 succeeded [82 read from cache] × 4/86 targets failed, including the following: - nx run @novu/ee-dal:build - nx run @novu/ee-translation-web:build - nx run @novu/ee-billing-web:build - nx run @novu/ee-auth:build View structured, searchable error logs at https://nx.app/runs/CSqrL8eNGa ELIFECYCLE Command failed with exit code 1.
@trex00adi
I will check this debug the issue in few hours
Thanks. Please ping after it is resolved.
should Mongodb and redis be running while we run npm setup project command ?
Yes
Both should be running and allowing connection on default ports
@Pawan Jain This one also facing the similar issue when setting up in local
https://discord.com/channels/895029566685462578/1197454768516378685
@trex00adi, you just advanced to level 1!
Ok so you have windows system
It will take me some time to debug in windows machine
Yes cloning in Windows 10 . Is this sufficient setup for redis and mongoDB .Please verify .I've connected MongoDb and started redis server and cli
Yeah ut should work
Please share when its resolved . Thank you
Hello @Pawan Jain , I hope you're doing well. I wanted to kindly check if there have been any updates on the issue we discussed earlier. Is there any progress or potential fixes available?
@trex00adi
I got chance to check the issue on my friend windows machine,
You can ignore this error and start working on Novu in local machine
Are you looking to contribute to Novu?
Hi @Pawan Jain ,Yes I want to contribute , I'm able to run it on web on localhost but when I ran the npm run start api :dev, I'm getting below error ,I think its related to last 3 target which failed to install when I ran setup project. Do you have any fix /workaround to install those 3 targets. Thank you
@trex00adi
In second image, I see application generic error
Steps to remove this error are:-
and then
from root
Thank you @Pawan Jain , Now I'm able to run the project .🙏 🙂