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

plugin compiles functions that do not use node runtime

Open vectorjohn opened this issue 5 years ago • 2 comments

If I have a project that uses multiple runtimes (configured individually per function), using this plugin will treat them all as TypeScript and attempt to compile them. This blocks using the plugin in a mixed runtime environment.

vectorjohn avatar Feb 03 '20 22:02 vectorjohn

#197 is my attempt at fixing this. It works when I use it for my case but I may have missed some corner cases.

vectorjohn avatar Feb 03 '20 22:02 vectorjohn

I need this also!

wahlforss avatar Mar 06 '20 11:03 wahlforss

This is fixed in master (but not in any release yet!).

vectorjohn avatar Oct 03 '22 19:10 vectorjohn

why is this closed? I'm getting this error when combining node (typescript) and python runtimes running the latest version 2.1.4

I'm getting the following error

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined

I think when specifying packaging individually option we reach this line https://github.com/serverless/serverless-plugin-typescript/blob/master/src/index.ts#L281

avivshafir avatar Nov 06 '22 18:11 avivshafir