aws-samples / aws-samples/smithy-server-generator-typescript-sample

Doesn't work if there are spaces in the path to the project

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
18
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Hi, minor issue, it wont work if there are spaces in the path.
Failure occurs during "cdk deploy", due to the CDK lambda handler and tsconfig paths [here](https://github.com/aws-samples/smithy-server-generator-typescript-sample/blob/main/server/lib/cdk-stack.ts#L32-L38).

Mitigation is to move the project to a directory with no spaces in the path. Not sure what the long term fix would be (I tried adding doublequotes to the entry and tsconfig properties but it just broke things more).

Edit for more details: error is due to the esbuild bundler (from using the NodeJsFunction lambdas) command not being able to understand the paths with spaces in them, you get an error like `Must use "outdir" when there are multiple input files`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.