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
$ts-node>constfoo=123undefined>foo123>_123>"strings, like anything else, should work"'strings, like anything else, should work'>constbar=_undefined>bar'strings, like anything else, would work'>
Actual Behavior
$ts-node>constfoo=123undefined>foo123>_<repl>.ts:6:1-error TS2304: Cannotfindname'_'.6_~>"strings don't work either""strings don't work either">constbar=_<repl>.ts:7:13-errorTS2304: Cannotfindname'_'.7constbar=_~>bar<repl>.ts:7:1-error TS2304: Cannotfindname'bar'.7bar~~~>
Steps to reproduce the problem
Open a ts-node REPL, execute a line of code, and on the next line the return value should be accessible via _, just like on the normal node REPL, as described here.
Minimal reproduction
Given this is happening in any ts-node REPL environment as far as I can tell (at least on the versions mentioned below), I'm not sure what exactly what a "minimal reproduction" would look like here. Please specify what you want me to include if you still want one though, and I'd be happy to oblige.
Specifications
ts-node version: v10.9.1
node version: v19.7.0
TypeScript version: v5.1.6
tsconfig.json, if you're using one: N/A
package.json: N/A
Operating system and version: Linux 6.5.9-arch1-1, Arch Linux, GNOME
If Windows, are you using WSL or WSL2?: No
The text was updated successfully, but these errors were encountered:
Search Terms
REPL
,Return Value
,_
Expected Behavior
Actual Behavior
Steps to reproduce the problem
Open a
ts-node
REPL, execute a line of code, and on the next line the return value should be accessible via_
, just like on the normalnode
REPL, as described here.Minimal reproduction
Given this is happening in any ts-node REPL environment as far as I can tell (at least on the versions mentioned below), I'm not sure what exactly what a "minimal reproduction" would look like here. Please specify what you want me to include if you still want one though, and I'd be happy to oblige.
Specifications
v10.9.1
v19.7.0
v5.1.6
N/A
N/A
Linux 6.5.9-arch1-1, Arch Linux, GNOME
No
The text was updated successfully, but these errors were encountered: