Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update resolve.js #15

Merged
merged 1 commit into from Jul 22, 2016
Merged

Update resolve.js #15

merged 1 commit into from Jul 22, 2016

Conversation

hannes-dahlberg
Copy link
Contributor

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.

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.
@coveralls
Copy link

coveralls commented Jul 3, 2016

Coverage Status

Coverage remained the same at 93.478% when pulling d923200 on hannes-dahlberg:patch-1 into 4894c8c on inxilpro:master.

@haltcase
Copy link

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.

@inxilpro
Copy link
Owner

Sorry, for some reason didn't notice this before. Taking a look!

@inxilpro inxilpro merged commit 54de719 into inxilpro:master Jul 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants