Apify Discord Mirror

Updated last year

Bug with typescript

At a glance

The community member installed templates (typescript example and playwright typescript example) on multiple operating systems (windows & ubuntu via vmware) and encountered the error "state.conditions.includes is not a function". They tested the basic js template and had no issue. The community member then updated to the latest typescript (5.3.2) and tried again, but the same error occurred. They then installed typescript 5.1.6 and it worked.

Another community member responded that there is an issue with the latest typescript, which was reported to the typescript team. They suggested that earlier versions of typescript, such as 5.1 and 5.2, should also work.

I installed using templates (typescript example and playwright typescript example) on multiple operating systems (windows & ubuntu via vmware) and ran into the error "state.conditions.includes is not a function). I tested the basic js template and had no issue.

I went back to the ts project and updated to latest typescript(5.3.2) and tried again, same error. I then installed 5.1.6 and it worked.
A
1 comment
Hey there! thanks for the report! There's an issue with the latest TS, it was reported by our team to TS directly. For now earlier TS version should work - pretty sure not only 5.1, but 5.2 should also work
Add a reply
Sign up and join the conversation on Discord