Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top