Skip to content
This repository has been archived by the owner on Mar 8, 2019. It is now read-only.

Line 11 Parsing Error #41

Open
Veiam opened this issue Jan 11, 2018 · 2 comments
Open

Line 11 Parsing Error #41

Veiam opened this issue Jan 11, 2018 · 2 comments

Comments

@Veiam
Copy link

Veiam commented Jan 11, 2018

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
Copy link

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
Copy link

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

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

2 participants