Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: beam-starter-typescript: npm run build: TypeError: Cannot set property constructor of [object Object] which has only a getter #33527

Open
2 of 17 tasks
denis-haskin-elemental opened this issue Jan 7, 2025 · 2 comments

Comments

@denis-haskin-elemental
Copy link

denis-haskin-elemental commented Jan 7, 2025

What happened?

Follow the steps in the README: https://github.com/apache/beam-starter-typescript?tab=readme-ov-file

Clone the repository, then:

✗ npm install

up to date in 402ms

27 packages are looking for funding
  run `npm fund` for details
✗ npm run build

> [email protected] build
> ttsc

/Users/denis/em/beam-starter-typescript/node_modules/ttypescript/lib/loadTypescript.js:13
        function __() { this.constructor = d; }
                                         ^

TypeError: Cannot set property constructor of [object Object] which has only a getter
    at new __ (/Users/denis/em/beam-starter-typescript/node_modules/ttypescript/lib/loadTypescript.js:13:42)
    at __extends (/Users/denis/em/beam-starter-typescript/node_modules/ttypescript/lib/loadTypescript.js:14:84)
    at /Users/denis/em/beam-starter-typescript/node_modules/ttypescript/lib/loadTypescript.js:65:5
    at Object.<anonymous> (/Users/denis/em/beam-starter-typescript/node_modules/ttypescript/lib/loadTypescript.js:100:2)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32)
    at Module._load (node:internal/modules/cjs/loader:1024:12)
    at Module.require (node:internal/modules/cjs/loader:1233:19)
    at require (node:internal/modules/helpers:179:18)

Node.js v20.15.0

Is there perhaps a nodejs version constraint which is not specified in the package.json?

Is that project still valid?


(Also, the apache/beam-starter-typescript Github project does not have issues enabled, so I assume this should get eported here)

Issue Priority

Priority: 2 (default / most bugs should be filed as P2)

Issue Components

  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam YAML
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Infrastructure
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Samza Runner
  • Component: Twister2 Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner
@denis-haskin-elemental
Copy link
Author

fwiw, I tried with nodejs 18 and 16 with the same result.

@denis-haskin-elemental
Copy link
Author

Also, fwiw, I was able to set up blank nodejs tyepscript project, install apache-beam, and run trivial examples (nodejs 20.15.0). So it seems there's just something with the setup of this starter project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant