ok, using this exact configuration is when I get the error, but I copied the SmartApp definition and it isn’t causing the error, so, if you’re modifying the sample of no-devices-nodejs-lambda-dev-smartapp
, I think the export/import could be affecting the execution.
Using the config below works for me:
const { SmartApp } = require('@smartthings/smartapp')
module.exports = new SmartApp()
.enableEventLogging(2)
.appId('7c8d8533-aec1-4338-8822-f19d923fee6f')
.permissions(['r:devices:*'])
.page('mainPage', (_, page) => {
page.section('Text', section => {
section
.paragraphSetting('info').text("This is some test text")
})
})
.installed(async context => {
console.log("Hello installed!")
})