You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Produces the following output when npm run build is run:
> concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'
...
$ tsc -p tsconfig.types.json
[build:cjs] src/protocols/Aws_json1_0.ts(52,36): error TS2552: Cannot find name 'de_string'. Did you mean 'String'?
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[build:cjs] yarn run build:cjs exited with code 2
[build:types] src/protocols/Aws_json1_0.ts(52,36): error TS2552: Cannot find name 'de_string'. Did you mean 'String'?
[build:es] src/protocols/Aws_json1_0.ts(52,36): error TS2552: Cannot find name 'de_string'. Did you mean 'String'?
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[build:types] yarn run build:types exited with code 1
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[build:es] yarn run build:es exited with code 2
To reproduce, build this minimal main.smithy file:
I should add that this seems to be broken if we're using @awsJson1, but not with @restJson.
It also happens only if the output structure has both, a field marked with @httpPayload who's type is @streaming and a field marked with @httpHeader along side it. Removing any of these will let it generate buildable code.
Produces the following output when
npm run build
is run:To reproduce, build this minimal
main.smithy
file:With the following dependencies:
Tested with smithy-cli versions 1.33, 1.34, 1.40.
The text was updated successfully, but these errors were encountered: