Вопрос

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