ewnd9 / electron-remote-require-investigation

[investigation]

Repository from Github https://github.comewnd9/electron-remote-require-investigationRepository from Github https://github.comewnd9/electron-remote-require-investigation

Context

https://github.com/ewnd9/electron-image-menu/commit/3bd3f09c894a972256703e99bacc9134e92bc2e2#commitcomment-17023844

Description

index.html (renderer) contains code requiring dependency 'a' which try to require both via default require and remote require its own dependecy 'b' (node_modules/a/node_modules/b) and top level dependency 'c' (node_modules/c)

Output of log inside devtools

b is required
b is not remote required Error: Cannot find module 'b'(…)(anonymous function)
c is required
c is remote required

Install

$ npm install

Usage

$ npm start

About

[investigation]


Languages

Language:HTML 55.2%Language:JavaScript 44.8%