Skip to content

excuting wcs run throws an error #267

@GregOnNet

Description

@GregOnNet

Hi,

after running an evaluation, it seems that running the generated app is not possible.

Expectation

export GEMENI_API_KEY="..." && web-codegen-scorer eval --env=./config.mjs --model gemini-2.5-flash --prompt-filter=goal-tracker

wcs run --prompt=goal-tracker --env=config.mjs

This should start a dev-server having the Angular app up and running.

Actual behavior

During the setup process of the workspace, the following console output including an ERR_ILLEGAL_CONSTRUCTOR-Error is given

Setting up the "wcs-playground" environment with the "goal-tracker" prompt...
web-codegen-scorer run

Run an evaluated app locally

Options:
  --environment, --env  Path to the environment configuration file                                [string] [default: ""]
  --prompt              ID of the prompt within the environment that should be run                [string] [default: ""]
  --reports-directory   Path from which to read local reports                                                   [string]
  --help                Show help                                                                              [boolean]

TypeError [ERR_ILLEGAL_CONSTRUCTOR]: Illegal constructor
    at new AbortSignal (node:internal/abort_controller:177:13)
    at runApp (file:///Users/gregor/Library/pnpm/global/5/.pnpm/web-codegen-scorer@0.0.69_postcss@8.5.6/node_modules/web-codegen-scorer/runner/run-cli.js:81:116)
    at async Object.handler (file:///Users/gregor/Library/pnpm/global/5/.pnpm/web-codegen-scorer@0.0.69_postcss@8.5.6/node_modules/web-codegen-scorer/runner/run-cli.js:44:9) {
  code: 'ERR_ILLEGAL_CONSTRUCTOR'

Reproduction

This behavior can be seen by using the following playground: https://github.com/GregOnNet/web-codegen-scorer-playground

Local Environment

  • OS: macOS
  • Platform: Node 24

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions