Struggling to transition my Cypress test framework from JavaScript to TypeScript has been quite challenging for me. Despite following numerous online tutorials, I'm unable to make it work smoothly.
While working on my Login.ts
file, I encountered an error when attempting to declare a variable:
Cannot find name 'private'.ts(2304):
https://i.sstatic.net/4XNGV.png
The dependencies listed in my package.json are as follows:
"dependencies": {
"cypress": "^9.5.2",
"tsify": "^5.0.4",
"typescript": "^4.6.3"
},
"devDependencies": {
"cypress-cucumber-preprocessor": "^4.3.1"
},
"cypress-cucumber-preprocessor": {
"nonGlobalStepDefinitions": true
}