node.js - Linux - Require error -




i'm working in thing in nodejs. give me error... can't find answer..

 var main = electron.remote.require('main.js'); ^  typeerror: cannot read property 'require' of undefined @ object. (/opt/lampp/htdocs/bot_farm/farmer.js:11:27) @ module._compile (module.js:569:30) @ object.module._extensions..js (module.js:580:10) @ module.load (module.js:503:32) @ trymoduleload (module.js:466:12) @ function.module._load (module.js:458:3) @ function.module.runmain (module.js:605:10) @ startup (bootstrap_node.js:158:16) @ bootstrap_node.js:575:3 root@vps21:/opt/lampp/htdocs/bot_fa# node farmer.js module.js:487 throw err; ^ 

hope u can me fast.

typeerror: cannot read property 'require' of undefined

means node unable identify remote, might because electron not required.

have required electron? guess solution problem is:

var electron = require('electron') 




wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -