From d932dbde408d0f97c07d60a49c3d899de6c0a172 Mon Sep 17 00:00:00 2001 From: guilhermelirio Date: Sun, 8 Mar 2020 13:26:18 -0300 Subject: [PATCH] Fix uuid error: "uuid is not a function" Change line 16 of AlexaResponse.js: let uuid = require('uuid'); To: let uuid = require('uuid/v4'); --- lambda/smarthome/alexa/skills/smarthome/AlexaResponse.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lambda/smarthome/alexa/skills/smarthome/AlexaResponse.js b/lambda/smarthome/alexa/skills/smarthome/AlexaResponse.js index 06abfa8..e045963 100644 --- a/lambda/smarthome/alexa/skills/smarthome/AlexaResponse.js +++ b/lambda/smarthome/alexa/skills/smarthome/AlexaResponse.js @@ -13,7 +13,7 @@ 'use strict'; -let uuid = require('uuid'); +let uuid = require('uuid/v4'); /** * Helper class to generate an AlexaResponse. @@ -170,4 +170,4 @@ class AlexaResponse { } } -module.exports = AlexaResponse; \ No newline at end of file +module.exports = AlexaResponse;