amazon-archives / skill-sample-nodejs-calendar-reader

An Alexa Skill Sample showing how to import calendar data from an .ICS file.
Other
75 stars 89 forks source link

Line 11 Parsing Error #41

Open Veiam opened 6 years ago

Veiam commented 6 years ago

Hello all,

In index.js

Line 11: const alexa; is running into parsing error due to an unexpected token.

Not sure if this has any effects on the code.

richardwhiteii commented 6 years ago

Yeah, I commented that out and have tried something like.

const Alexa = require('alexa-sdk'); const alexa = require('alexa-sdk'); const ical = require('ical'); const http = require('http'); const utils = require('util');

const states = { SEARCHMODE: '_SEARCHMODE', DESCRIPTION: '_DESKMODE', }; // local variable holding reference to the Alexa SDK object //const alexa;

I got past the last that error and am now stuck on a "missing index"

R

richardwhiteii commented 6 years ago

Actually, there was an update to index.js that changed the variable declarations from var to const and let.

I changed them back to var. Search and replace const to var, and let to var.

Then var alexa; started to work with const alexa; didn't

R