Wednesday, 3 May 2017

Can't use third party modules via electron

I am trying to implement Desctop application using electron. Everything was good until I tried to use module serialport. The project structure looks like this:

enter image description here When I try to start the program I get the following errors:enter image description here I know that the problem is not in the module because i tested it from another file called test.js and everything works. This is the content of package.JSOSN:

{
  "name": "getting-started-with-electron",
  "version": "0.1.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "start": "electron main.js"
  },
  "author": "r",
  "license": "ISC"
}



via Hairi

No comments:

Post a Comment