You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/08/09 19:10:31 UTC

[GitHub] [cordova-electron] tysoncadenhead opened a new issue #196: Cannot find module: './cdv-electron-settings.json'

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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-electron] erisu commented on issue #196: Cannot find module: './cdv-electron-settings.json'

Posted by GitBox <gi...@apache.org>.
erisu commented on issue #196:
URL: https://github.com/apache/cordova-electron/issues/196#issuecomment-921806509


   I tried locally and was unable to reproduce this issue on Windows 10.
   
   Could you confirm if you still have this problem? Also, maybe try with the latest Cordova Electron 3.0.0?
   
   To upgrade:
   ```
   cordova platform remove electron
   cordova platform add electron@3.0.0
   ```
   
   I noticed you had a hookscript , `scripts/prebuild.js`, which maybe is causing the issue.


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org