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

Is relative path supported in serverless typescript?

Open jaydenpung opened this issue 4 years ago • 1 comments

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?

jaydenpung avatar Nov 03 '21 08:11 jaydenpung

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

hannojg avatar Feb 02 '23 11:02 hannojg