tysoncadenhead opened a new issue #196: URL: https://github.com/apache/cordova-electron/issues/196
# Bug Report ## Problem I am able to build an Electron in Windows10, but when I try to install it, I'm getting an error that says Cannot find module: './cdv-electron-settings.json' <img width="838" alt="Screen Shot 2021-08-09 at 2 04 39 PM" src="https://user-images.githubusercontent.com/355354/128760231-74a869f9-15db-4152-959f-0f09d44160fe.png"> ## Information build.json ```json { "electron": { "windows": { "package": ["zip"] } } } ``` config.yml ```yml <?xml version='1.0' encoding='utf-8'?> <widget id="com.sageipad.sage" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <content src="index.html" /> <access origin="*" /> <allow-intent href="http://*/*" /> <allow-intent href="https://*/*" /> <allow-intent href="tel:*" /> <allow-intent href="sms:*" /> <allow-intent href="mailto:*" /> <allow-intent href="geo:*" /> <platform name="electron"> <preference name="ElectronSettingsFilePath" value="res/electron/settings.json" /> </platform> <hook type="before_prepare" src="scripts/prebuild.js" /> <preference name="EnableViewportScale" value="true" /> </widget> ``` res/electron/settings.json ```json { "browserWindow": { "width": 1024, "height": 768, "resizable": true } } ``` ### Environment, Platform, Device Electron on Windows 10 ## Checklist - [x ] I searched for existing GitHub issues - [ x] I updated all Cordova tooling to most recent version - [x ] I included all the necessary information above -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
