aws-solutions / automated-data-analytics-on-aws

The Automated Data Analytics on AWS solution provides an end-to-end data platform for ingesting, transforming, managing and querying datasets. This helps analysts and business users manage and gain insights from data without deep technical experience using Amazon Web Services (AWS).
Apache License 2.0
89 stars 27 forks source link

@ada/api build throws error on ttypescript #69

Closed joseaparicioquake closed 6 months ago

joseaparicioquake commented 8 months ago

Describe the bug I want to customize the way the solution creates connections to the RDS with glue, using connectors with our transit gateway, trying to setup this solution using the github repo and following the README file steps, rather than CFT template way. I am using EC2 linux machine with Ubuntu as recommended per documentation for this setup.

However, when running ./run-all-tests.sh on building the api, it throws this error.

@ada/athena-utilities: [INFO] BUILD SUCCESS
@ada/athena-utilities: [INFO] ------------------------------------------------------------------------
@ada/athena-utilities: [INFO] Total time:  29.391 s
@ada/athena-utilities: [INFO] Finished at: 2024-02-28T14:58:53Z
@ada/athena-utilities: [INFO] ------------------------------------------------------------------------
@ada/cdk-core: $ yarn run compile
@ada/cdk-core: $ tsc
@ada/api: $ yarn clean && yarn generate
@ada/api: $ rm -rf build client docs
@ada/api: $ yarn generate:openapi
@ada/api: $ ts-node -C ttypescript ./generators/openapi/generate.ts
@ada/api: /home/ubuntu/automated-data-analytics-on-aws/source/node_modules/ttypescript/lib/loadTypescript.js:13
@ada/api:         function __() { this.constructor = d; }
@ada/api:                                          ^
@ada/api: TypeError: Cannot set property constructor of [object Object] which has only a getter
@ada/api:     at new __ (/home/ubuntu/automated-data-analytics-on-aws/source/node_modules/ttypescript/lib/loadTypescript.js:13:42)
@ada/api:     at __extends (/home/ubuntu/automated-data-analytics-on-aws/source/node_modules/ttypescript/lib/loadTypescript.js:14:84)
@ada/api:     at /home/ubuntu/automated-data-analytics-on-aws/source/node_modules/ttypescript/lib/loadTypescript.js:65:5
@ada/api:     at Object.<anonymous> (/home/ubuntu/automated-data-analytics-on-aws/source/node_modules/ttypescript/lib/loadTypescript.js:100:2)
@ada/api:     at Module._compile (node:internal/modules/cjs/loader:1198:14)
@ada/api:     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
@ada/api:     at Module.load (node:internal/modules/cjs/loader:1076:32)
@ada/api:     at Function.Module._load (node:internal/modules/cjs/loader:911:12)
@ada/api:     at Module.require (node:internal/modules/cjs/loader:1100:19)
@ada/api:     at require (node:internal/modules/cjs/helpers:119:18)
@ada/api: error Command failed with exit code 1.
@ada/api: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@ada/api: error Command failed with exit code 1.
@ada/api: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@ada/api: error Command failed with exit code 1.
@ada/api: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR! yarn run build exited 1 in '@ada/api'
lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

To Reproduce Steps to reproduce the behavior: Follow all the steps given in README.md file at the root of the project Use an EC2 with Ubuntu as SO, on an public subnet with IGW run the script file "./run-all-tests.sh"

Expected behavior Build should complete successfully

Please complete the following information about the solution:

Screenshots If applicable, add screenshots to help explain your problem (please DO NOT include sensitive information). image

Additional context Add any other context about the problem here.

dougtoppin commented 8 months ago

@joseaparicioquake thanks for your report, I duplicated this as well, we will investigate and get back to you

dougtoppin commented 7 months ago

@joseaparicioquake This issue should now be resolved in the v1.4.0 release