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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top