@sdetweil so i had a look and apparently this was missing || hardware === 'BCM2835'
from else if (hardware === 'BCM2709' || hardware === 'BCM2835')
but when i added that now its giving a different error
[14:05:10.212] [ERROR] Error: EACCES, Permission denied
at /home/pi/MagicMirror/modules/MMM-Swipe/node_modules/mmm-gpio/lib/gpio.js:30:18
at ChildProcess.exithandler (child_process.js:299:7)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12) {
errno: 13,
code: 'EACCES',
syscall: 'init'
}
[14:05:10.252] [LOG] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[14:05:10.254] [LOG] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[14:05:10.276] [LOG] Whoops! There was an uncaught exception...
[14:05:10.278] [ERROR] Error: EACCES, Permission denied
at /home/pi/MagicMirror/modules/MMM-Swipe/node_modules/mmm-usonic/lib/usonic.js:32:20
at ChildProcess.exithandler (child_process.js:299:7)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12) {
errno: 13,
code: 'EACCES',
syscall: 'init'
}