N
Novu15mo ago
ninja7

Changes in code not getting reflected

Hi @unicodeveloper I have added a email provider template, but it just doesn't reflect in the UI. can you please help me? I have added handler, added it to mail.factory.ts and similarly for email.ts too, but its just not reflecting
37 Replies
Prosper
Prosper15mo ago
Please can you provide more context? Where are you in all the steps you followed? Have you added the logos for the new email provider, both dark and light?
ninja7
ninja7OP15mo ago
first I ran
npm run generate:provider
npm run generate:provider
and setup the provider template, I also created all the files within which I will be working, for example: emailProvider.handler.ts, factory, ... I mean I have setup all the files, I need to only work on Provider and handler function now Images also have been added in the respective folder and configured as well I think one possible issue is I think I need to install dependencies at the newProvider folder
Prosper
Prosper15mo ago
I think you need to ensure you are done with all the processes, installation and code so it's easier to debug and reflect
ninja7
ninja7OP15mo ago
also do you think I need to install dependencies for the provider? /provider/emailProvider
Novu_Bot
Novu_Bot15mo ago
@ninja7, you just advanced to level 4!
Prosper
Prosper15mo ago
yes, because you need to install whatever library you are using to send the email itself for the new provider
ninja7
ninja7OP15mo ago
I have written all the code necessary, now I am confused about the next step
Prosper
Prosper15mo ago
So are you running it and getting any issues? because you need to run it, see it in the UI, test the flow.
ninja7
ninja7OP15mo ago
I mean do I do
npm run setup:project
npm run setup:project
again?
Prosper
Prosper15mo ago
You need to run the api service and also run the web in your terminals. run “pnpm start” from the api directory (to ensure the api is running successfully) on one terminal and run "pnpm start" from the web directory in another terminal to ensure the web UI is running successfully make sure you build from the root directory first with something like pnpm build
ninja7
ninja7OP15mo ago
@madd hey there, i need your help bro
mdd
mdd15mo ago
Sorry for delay, what is the problem? You can also build from /providers/your-provider and there are two scripts:
npm run build
npm run build
and
npm run watch:build
npm run watch:build
Avery change code in your provider will rebuild provider.
ninja7
ninja7OP15mo ago
no worries, I have successfully built but how do I determine if its working or not? I mean if I am able to send any email or not here is what I did so far: 1) added all necessary files, images and code everything 2) successfully ran 'npm run setup:project' again and also ran test @unicodeveloper can you please help me on this matter?
Prosper
Prosper15mo ago
You need to now follow the normal step of adding a provider, making it a primary provider and then triggering an email notification via code. Put yourself in the shoe of a user that is trying to use Novu with the new provider you just added
Prosper
Prosper15mo ago
for example, follow this quickstart and use it to test your own provider you just added to see if your work is actually working https://docs.novu.co/quickstarts/nodejs
Novu
Node.js - Novu
Learn how to use Novu to quickly send multi-channel (SMS, Email, Chat, Push) notifications with Node.js.
Prosper
Prosper15mo ago
OR better still Just ensure you have access to the Novu dashboard locally, Login and create a new workflow, add an email channel, ensure you have setup the provider (your new provider) from the integrations store. And then there is a test button on the workflow section where you can trigger a test notification
ninja7
ninja7OP15mo ago
No description
ninja7
ninja7OP15mo ago
I went with usingg Novu dashboard locally, it goes good until above screen Once I click on 'Set up Digest workflow', it shows error
ninja7
ninja7OP15mo ago
No description
Prosper
Prosper15mo ago
Please create a normal workflow No need for a digest workflow Click on go back to take you to creating a blank workflow
ninja7
ninja7OP15mo ago
ninja7
ninja7OP15mo ago
No description
ninja7
ninja7OP15mo ago
same problem with blank workflow too I can confirm its not working, all i see is above screen @unicodeveloper
Prosper
Prosper15mo ago
is the api service running
ninja7
ninja7OP15mo ago
yes sir
Prosper
Prosper15mo ago
Hmmn that's weird
ninja7
ninja7OP15mo ago
no wait, I see error on API and workers' ongoing terminal
ninja7
ninja7OP15mo ago
This is worker terminal
No description
ninja7
ninja7OP15mo ago
@unicodeveloper This is API's terminal
No description
ninja7
ninja7OP15mo ago
@Pawan Jain can you help me sir? @unicodeveloper should I just make a PR?
Pawan Jain
Pawan Jain15mo ago
Hi @ninja7 Yeah that would help Please create a PR we will review and suggest the issue
ninja7
ninja7OP15mo ago
yeah let me do that in an instant just did sir
Pawan Jain
Pawan Jain15mo ago
Thanks I will check over the weekend 😀
ninja7
ninja7OP14mo ago
Someone please go through my PR @unicodeveloper @Pawan Jain https://github.com/novuhq/novu/pull/4442 i think i needn't add pnpm-lock.yaml file
Novu_Bot
Novu_Bot14mo ago
@ninja7, you just advanced to level 7!
ninja7
ninja7OP14mo ago
Hi @Zac Clifton I have resolved the conflicts like you suggested
ninja7
ninja7OP14mo ago
GitHub
Add/hashmail email provider by bibaswan7 · Pull Request #4442 · nov...
What change does this PR introduce? It adds hashmail email provider to Novu API reference: https://docs.hashmail.dev/docs/trigger-notifications-with-api Why was this change needed? Solves #4337 Oth...
Want results from more Discord servers?
Add your server