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:
When I try to start the program I get the following errors: 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