Pregunta

I am running a Derby app. I am trying to use the plugin "nodemailer", but when it "require('os')", I get the error "module "os" not found from".enter image description here

What could be causing it?

¿Fue útil?

Solución

The problem was that I was requiring it in a file that was rendered on the client in a method similar to browserify. I just instead had to put it in "server.js", and call it from a server-side express route.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top