Skip to content

Conversation

mho22
Copy link
Collaborator

@mho22 mho22 commented Oct 2, 2025

Motivation for the change, related issues

Running npm run local-package-repository crashes with the following error :

node:internal/modules/typescript:67
        throw new ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX(error.message);
              ^

SyntaxError [ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX]:   x TypeScript parameter property is not supported in strip-only mode
    ,-[41:1]
 38 |         }
 39 |
 40 |         protected constructor(
 41 | ,->         private readonly declaration:
 42 | |               | BlueprintV1Declaration
 43 | `->             | BlueprintV2Declaration,
 44 |             private readonly bundle: BlueprintBundle | undefined,
 45 |             private readonly version: number
 46 |         ) {}
    `----
  x TypeScript parameter property is not supported in strip-only mode
    ,-[44:1]
 41 |         private readonly declaration:
 42 |             | BlueprintV1Declaration
 43 |             | BlueprintV2Declaration,
 44 |         private readonly bundle: BlueprintBundle | undefined,
    :                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 45 |         private readonly version: number
 46 |     ) {}
    `----
  x TypeScript parameter property is not supported in strip-only mode
    ,-[45:1]
 42 |             | BlueprintV1Declaration
 43 |             | BlueprintV2Declaration,
 44 |         private readonly bundle: BlueprintBundle | undefined,
 45 |         private readonly version: number
    :                          ^^^^^^^^^^^^^^^
 46 |     ) {}
 47 |
 48 |     getVersion() {
    `----

    at parseTypeScript (node:internal/modules/typescript:67:15)
    at processTypeScriptCode (node:internal/modules/typescript:129:42)
    at stripTypeScriptModuleTypes (node:internal/modules/typescript:196:22)
    at ModuleLoader.<anonymous> (node:internal/modules/esm/translators:551:16)
    at #translate (node:internal/modules/esm/loader:534:12)
    at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:581:27) {
  code: 'ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX'
}

Implementation details

Rewriting the constructor without parameter properties.

Testing Instructions (or ideally a Blueprint)

Run npm run local-package-repository

@mho22 mho22 added [Type] Bug An existing feature does not function as intended [Focus] Developer Tools labels Oct 2, 2025
@adamziel adamziel merged commit 942aef0 into trunk Oct 2, 2025
26 checks passed
@adamziel adamziel deleted the fix-local-package-repository-run-issue branch October 2, 2025 12:21
@adamziel
Copy link
Collaborator

adamziel commented Oct 2, 2025

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Focus] Developer Tools [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants