I know this has been posted a lot on this forum, but I couldn’t find one that solved my case.
I am trying to build email functionalities to my web using node-mailjet. It uses Netlify’s serverless function to send emails.
Everything works fine when I run
ntl dev locally. But when I uploaded the website to Netlify, I’m getting this error:
"Error: Cannot find module 'node-mailjet'.
I looked around other topics already in the forum and followed some solutions, namely adding
[functions] external_node_modules = ["node-mailjet"] node_bundler = "esbuild"
to my netlify.toml file. I also tried installing v3 of node-mailjet instead of v6. But the problem persists.
"node-mailjet": "^3.3.7", listed as dependency in package.json.
Any help would be appreciated.