serverless / serverless-plugin-typescript

Serverless plugin for zero-config Typescript support
MIT License
783 stars 223 forks source link

Is relative path supported in serverless typescript? #255

Open jaydenpung opened 2 years ago

jaydenpung commented 2 years ago

When I import in typescript from "src/abc/lol.ts", and run "npm run build", the resulting path is converted correctly to "../abc/lol". However, running "serverless offline start", the path did not change. As pictured below, left is output by serverless, right is output by npm run build.

image

When I run serverless, it did mention using local tsconfig, here is my tsconfig: image

Am I doing anything wrong, or is relative path like "src/abc" is not supported by serverless?

hannojg commented 1 year ago

I feel like serverless-plugin-typescript is not picking up the local tsconfig 🤔