Skip to content

4.3.0 static #private incompatible with importHelpers and tslib 2.1Β #43501

Closed
@arciisine

Description

@arciisine

Bug Report

πŸ”Ž Search Terms

tslib 4.3 __classPrivateFieldGet

πŸ•— Version & Regression Information

4.3.0-dev.20210401

  • I was unable to test this on prior versions because this is related to a new feature in 4.3

⏯ Playground Link

I'm unable to provide a playground link, as importHelpers is not reflecting in the playground, when selected.

Playground link with relevant code

πŸ’» Code

/**
 * Module utils
 */
export class ModuleUtil {

  static #handlers: ModuleHandler[] = [];
  /**
   * Add module post processor (post-load)
   *
   * @param handler The code to run on post module load
   */
  static addHandler(handler: ModuleHandler) {
    this.#handlers.push(handler);
  }

πŸ™ Actual behavior

The typescript compiler is showing the below error:

image

And I can see in tslib 2.1 that there is no support for more than 2 parameters for __classPrivateFieldGet. It looks like there is no compatible tslib for the 4.3.0 beta.

πŸ™‚ Expected behavior

importHelpers should be able to work with 4.3.

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions