Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Uncaught Error: Cannot find 'rpio' #115

Open
lorenzwinkler1 opened this issue Oct 13, 2019 · 0 comments
Open

Uncaught Error: Cannot find 'rpio' #115

lorenzwinkler1 opened this issue Oct 13, 2019 · 0 comments

Comments

@lorenzwinkler1
Copy link

Instal rpio via node on my windows machine and i am using it in an electron application. When running it on my raspberry pi 3 model b the developer console writes
Uncaught Error: Cannot find module 'rpio'.

I have tried building the application using electron-builder with asar enabled and electron-builder without asar.

My code in a nutshell is:
var rpio = require('rpio');
in a file (not the main.js file) in my project's root.

package.json:

{
"name": "myname",
"version": "1.0.0",
"description": "",
"main": "main.js",
"build": {
"asar": false,
"appId": "",
"mac": {
"category": "public.app-category.utilities",
"target": [
"zip",
"dmg"
]
},
"linux": {
"target": [
"snap"
]
},
"nsis": {
"perMachine": true
},
"extends": null
},
"scripts": {
"build": "tsc",
"watch": "tsc -w",
"lint": "tslint -c tslint.json -p tsconfig.json",
"start": "npm run build && electron main.js",
"pack": "electron-builder --dir",
"dist": "electron-builder",
"distlnxarm": "electron-builder --linux --armv7l",
"packlnxarm": "electron-builder --dir --arm64 --linux",
"elpackagerlnxarm":"electron-packager . pacman_htlball --platform=linux --arch=armv7l"
},
"repository": "https://github.com/electron/electron-quick-start-typescript",
"keywords": [
"Electron",
"quick",
"start",
"tutorial",
"demo",
"typescript"
],
"author": "Lorenzw",
"license": "CC0-1.0",
"devDependencies": {
"electron": "^6.0.8",
"electron-builder": "^21.2.0",
"tslint": "^5.19.0",
"typescript": "^3.6.0"
},
"dependencies": {
"node-gyp": "^6.0.0"
}
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant