serverless-plugin-typescript icon indicating copy to clipboard operation
serverless-plugin-typescript copied to clipboard

Cannot locate handler error message is not sufficient enough

Open nira40seas opened this issue 3 years ago • 2 comments

The following error message in typescript.js doesn't reflect the full path but only the filename.

Error: Typescript compilation failed. Please ensure handlers exists with ext .ts or .js at /home/runner/work/40Seas/40Seas/node_modules/serverless-plugin-typescript/dist/src/typescript.js:71:15

As a result it is hard to know where the problem is, and whether the code is actually looking in the right place.

nira40seas avatar Jul 25 '22 12:07 nira40seas

I've run into this just recently using namespaces in the handler.ts file. It hates using multiple dots, and I had to put all my functions on the root of the file to get around it.

individual11 avatar Oct 28 '22 14:10 individual11