You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to run lambda-local via the CLI and I'm running into these Unexpected token errors. The only thing I'm doing differently is that my Lambda is written in Typescript.
import { GraphQLHandler } from "./graphql"; <--- This is where my handler is being created
export * from "./graphql";
export const graphql = GraphQLHandler;
What am I doing wrong here? The stacktrace looks to be erroring out on the {} around GraphQLHandler
The text was updated successfully, but these errors were encountered:
jamesliupenn
changed the title
No support on Typescript syntax?
No support for Typescript syntax?
Mar 10, 2020
You have to transpile your typescripts files into javascript first before using lambda-local.
that's always in the case in typescript.
See https://stackoverflow.com/a/54410381
I am attempting to run
lambda-local
via the CLI and I'm running into theseUnexpected token
errors. The only thing I'm doing differently is that my Lambda is written in Typescript.This is what I'm executing:
index.ts
is simply a 3 liner index file:What am I doing wrong here? The stacktrace looks to be erroring out on the
{}
aroundGraphQLHandler
The text was updated successfully, but these errors were encountered: