serverless / serverless-plugin-typescript

Serverless plugin for zero-config Typescript support
MIT License
781 stars 222 forks source link

Cannot locate handler error message is not sufficient enough #276

Open nira40seas opened 2 years ago

nira40seas commented 2 years ago

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.

individual11 commented 1 year ago

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.