Closed hannes-dahlberg closed 8 years ago
Nice fix - I'm currently using it and can confirm it solves the issue.
Until this is merged if anyone needs the fix you can remove the original and add this to your package.json dependencies
:
"app-root-path": "hannes-dahlberg/node-app-root-path#patch-1"
Then npm install
and you'll get your fix. Just be aware this depends on the git repo and if it's removed ( like it probably will after it gets merged ) then it'll break.
Sorry, for some reason didn't notice this before. Taking a look!
Method of requiring has changed in electron since version 1.0. This change fixs the "Uncaught Error: Cannot find module 'remote'" error when trying to use "var appRoot = require('app-root-path');" on render side of an Electron app.