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

Cannot find module 'browserWindow' #8

Open
tuxbox opened this issue May 8, 2016 · 1 comment
Open

Cannot find module 'browserWindow' #8

tuxbox opened this issue May 8, 2016 · 1 comment

Comments

@tuxbox
Copy link

tuxbox commented May 8, 2016

Hi,

when I import the ng-electron.js in the index.html I receive the following error:

Uncaught Error: Cannot find module 'browserWindow' Error: Cannot find module 'browserWindow' at Function.Module._resolveFilename (module.js:339:15) at Function.Module._load (module.js:290:25) at Module.require (module.js:367:17) at EventEmitter.<anonymous> (/Users/iulius/Code/podplayer/electron-app/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/electron.asar/browser/rpc-server.js:235:70) at emitTwo (events.js:100:13) at EventEmitter.emit (events.js:185:7) at EventEmitter.<anonymous> (/Users/iulius/Code/podplayer/electron-app/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/electron.asar/browser/api/web-contents.js:141:25) at emitTwo (events.js:100:13) at EventEmitter.emit (events.js:185:7)

Any ideas how to fix that? Maybe it's just the readme that needs some more clarification :-)

@eddiriarte
Copy link
Contributor

eddiriarte commented May 11, 2016

module name should be 'browser-window'...
I have errors with some other modules: 'nativeImage' -> 'native-image', 'menuItem' -> 'menu-item', 'childProcess' -> 'child_process', etc.... i forked the project and fixed them, its working for me now: https://github.com/eddiriarte/ngElectron and created a pull-request now.

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

No branches or pull requests

2 participants