You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportclassFoo{
#foo: boolean;constructor(){this.#foo =false;// This syntax requires an imported helper but module 'tslib' cannot be found. ts(2354)}foo(): boolean{returnthis.#foo;}}
🔎 Search Terms
TS2354 This syntax requires an imported helper but module 'tslib' cannot be found.
importHelpers
module
preserve
🕗 Version & Regression Information
Occurs in 5.4.2 and in ^5.5.0-dev.20240307.
^ This is not technically true because
"module": "preserve"
wasn't added until 5.4.2.⏯ Playground Link
https://github.com/jgoz/typescript-module-preserve-issue
💻 Code
🙁 Actual behavior
Error message indicates that tslib is not present, but it is.
🙂 Expected behavior
No error.
Additional information about the issue
Not sure if this is a TS issue or an issue with the export maps in
tslib
.The text was updated successfully, but these errors were encountered: