You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "mhammad-extron (via GitHub)" <gi...@apache.org> on 2023/09/27 21:04:35 UTC

[GitHub] [cordova-electron] mhammad-extron opened a new issue, #259: Cordova electron is not packaging the dependencies

mhammad-extron opened a new issue, #259:
URL: https://github.com/apache/cordova-electron/issues/259

   I'm currently working on a Cordova Angular application that utilizes the Electron platform. As part of the project, I've integrated a library named "event-pubsub.". The installed library is in node_modules folder.
   
   I have also written a custom Cordova Electron plugin, named "tcp-plugin," where I am importing the above library:
   
   `var Events = self.require('event-pubsub');`
   
   To include this plugin in the Cordova Angular project, I used the following command:
   
   `cordova plugin add tcp-plugin`
   
   Building the project with `ng build` worked without any issues, and I can successfully build the Electron app as well using:
   
   `cordova build electron`
   
   However, upon running the packaged Electron executable file from /`platform/electron/build`/, I encounter a plugin-related error:
   
   `Module not found: event-pubsub`
   
   I would appreciate any assistance in resolving this issue.
   
   Cordova@12.0.0
   Cordova-electron@3.1.0
   Angular@14.x.x
   Node@16.20.2
   OS: Windows


-- 
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.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


Re: [I] Cordova electron is not packaging the dependencies [cordova-electron]

Posted by "erisu (via GitHub)" <gi...@apache.org>.
erisu commented on issue #259:
URL: https://github.com/apache/cordova-electron/issues/259#issuecomment-1771077282

   @mhammad-extron take a look at this comment: https://github.com/apache/cordova/discussions/439#discussioncomment-7309259
   
   It might point you into the right direction.


-- 
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


Re: [I] Cordova electron is not packaging the dependencies [cordova-electron]

Posted by "laux98 (via GitHub)" <gi...@apache.org>.
laux98 commented on issue #259:
URL: https://github.com/apache/cordova-electron/issues/259#issuecomment-1770742013

   Unfortunately, after few days of researchs, I don't find a solution about this problem.
   So, for my project, I decided to switch on electron (not cordova-electron) for using serial port and this work this way, but I can't find a solution about using serialport with cordova-electron ...


-- 
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


Re: [I] Cordova electron is not packaging the dependencies [cordova-electron]

Posted by "laux98 (via GitHub)" <gi...@apache.org>.
laux98 commented on issue #259:
URL: https://github.com/apache/cordova-electron/issues/259#issuecomment-1757143678

   Hello @mhammad-extron , did you find a solution about this problem ? 
   I have the same issue here with the library serialport, on windows 10, 11 and ubuntu 22.04. 


-- 
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


Re: [I] Cordova electron is not packaging the dependencies [cordova-electron]

Posted by "mhammad-extron (via GitHub)" <gi...@apache.org>.
mhammad-extron commented on issue #259:
URL: https://github.com/apache/cordova-electron/issues/259#issuecomment-1770679520

   @laux98 
   Sorry, I havent found the solution yet.


-- 
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


Re: [I] Cordova electron is not packaging the dependencies [cordova-electron]

Posted by "CHHHAN (via GitHub)" <gi...@apache.org>.
CHHHAN commented on issue #259:
URL: https://github.com/apache/cordova-electron/issues/259#issuecomment-2126333266

   @mhammad-extron 
   What can you use NodeJS API in cordova-electron ? 
   I use `require('electron');` console tips error: `require is not defined`


-- 
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