generative-ai-docs icon indicating copy to clipboard operation
generative-ai-docs copied to clipboard

Talking-character: Example won't compile. Error

Open JacobGoldenArt opened this issue 2 years ago • 1 comments

Hi, I'm excited to try this but can't get it to compile. Here the error I get after running npm start:

Failed to compile.

./src/apis/speechRecognition.ts 132:47
Module parse failed: Unexpected token (132:47)
You may need an appropriate loader to handle this file type.
|                 while (1) switch (_context2.prev = _context2.next) {
|                   case 0:
>                     base64Data = reader.result?.toString().split(',')[1];
|                     if (!base64Data) {
|                       _context2.next = 7;

I'm running this in VSCode on a M1 Macbook btw

JacobGoldenArt avatar May 17 '23 20:05 JacobGoldenArt

@jayjicheng I am facing the same error, what could be wrong? Before that I was facing an error of pipebuil graph runner but after downgrading to typescript version 3.3.0 got rid of that. Now, I am facing the same parser error in speechRecognition.ts file

As I am runnig code in VSCODE on Windows 10.

First Error in console:

./src/apis/speechRecognition.ts Line 102:45: Parsing error: Expression expected

2 - ./src/pages/personality.tsx Line 180:38: Parsing error: Expression expected

3- ./src/apis/avatarImage.ts Line 22:53: Parsing error: Expression expected

4- ./src/apis/textToSpeech.ts Line 56:79: Parsing error: Expression expected

5 - Uncaught ReferenceError: process is not defined

shuaibaslam2019 avatar Nov 29 '23 17:11 shuaibaslam2019