Currently immersed in working on Protractor with Cucumber and TypeScript, encountering a persistent issue. How can the following error be resolved:
Cannot locate the type definition file for 'cucumber'.
The file exists within the program due to:
Entry point of type library 'cucumber' specified in compilerOptions
tsconfig.json:13:22
13 "types": ["node","cucumber"],
File serves as an entry point of type library indicated here.
Below is my tsconfig.json
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"inlineSourceMap": true,
"declaration": false,
"noImplicitAny": false,
"sourceMap": false,
"removeComments": false,
"outDir": "JSFiles",
"types": ["node","cucumber"],
"esModuleInterop": true,
"resolveJsonModule": true
},
"exclude": [
"node_modules"
]
}