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
Describe the bug
When using version 2.2.1 (with either ts-patch@3.0.0-beta2 or ttsc@0.3.1), I get that cryptic error when I use a certain macro ($$readFile for instance) in certain scenarios.
Code to reproduce
Apparently, we cannot use $$readFile in a namespace...
Thanks for the bug report! There's indeed a bug regarding namespace members (your first example), and also a $$readFile bug that returns a raw string instead of a string literal if the file is being read more than once (second example).
Hi again.
Describe the bug
When using version
2.2.1
(with eitherts-patch@3.0.0-beta2
orttsc@0.3.1
), I get that cryptic error when I use a certain macro ($$readFile
for instance) in certain scenarios.Code to reproduce
Apparently, we cannot use
$$readFile
in a namespace...or in a object literal AND in a class...
but we can use
$$ts
inside a namespace...or
$$readFile
in a object literal...or
$$readFile
in a class...Expected behavior
Additional context
Doesn't occur in
2.1.0
. Not sure if this is related tots-patch
ortypescript=^5
.The text was updated successfully, but these errors were encountered: