TypeError: state.conditions.includes is not a function
in recent TS versions when running with ts-node
#56508
Labels
External
Relates to another program, environment, or user action which we cannot control.
Uh oh!
There was an error while loading. Please reload this page.
🔎 Search Terms
ts-node, tsnode, state.conditions.includes, typeerror
🕗 Version & Regression Information
⏯ Playground Link
https://github.com/vladfrangu/ts5.3-ts-node-issue
💻 Code
N/A, seems to be related to either a change in TS or an edge case when running it through ts-node
🙁 Actual behavior
TS fails to run when invoked via ts-node
🙂 Expected behavior
TS works fine when invoked via ts-node
Additional information about the issue
Adding a
console.log({ condition, state })
above the line that throws yieldsStacktrace
It seems like somehow
state.conditions
is a boolean instead of an array. I am not sure if this is something ts-node is doing or some very specific edge case in tsc, so I apologize in advance if this is the wrong repo.To test this with
every-ts
, I had to manually pointtypescript
to the path of the module, as the suggestednpm link $(every-ts dir)
command did not work.The text was updated successfully, but these errors were encountered: