-
Notifications
You must be signed in to change notification settings - Fork 65
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
annot find module 'remote' #73
Comments
I am having the same problem too, so far I find out that normally when you start a window, you have webPreference{nodeIntegeration:true} in setup so you can use node code like "require" in html. However, the webpreference is unable to setup by using electron-window-manager. |
In your Main.js or electron.js use this:
Then, in the new created window you can call this:
|
it still does not work for me~@Cabeccar |
I am able to create a main window, but it does not work for my second window |
Using this code :
<script> var remote = require('remote'); var windowManager = remote.require('electron-window-manager'); // Create a new window var win2 = windowManager.createNew('win2', 'Windows #2'); win2.setURL('/window2.html'); win2.onReady({}); win2.open(); </script>I keep getting the following:
Cannot find module 'remote'
The text was updated successfully, but these errors were encountered: