bahmutov/cypress-map

Typescript tsconfig shows error for cypress-map with Cypress 12

chaussen opened this issue · 0 comments

image

    "cypress": "^12.17.1",
    "cypress-map": "^1.21.0",

After my cypress is upgraded to 12.17, tsconfig.json starts to complain about cypress-map.

tsconfig:

   "compilerOptions": {
      "experimentalDecorators": true,
      "baseUrl": "./",
      "lib": [
         "esnext",
         "dom"
      ],
      "module": "esnext",
      "resolveJsonModule": true,
      "allowSyntheticDefaultImports": true,
      "moduleResolution": "node",
      "esModuleInterop": true,
      "outDir": "./dist/out-tsc",
      "sourceMap": true,
      "target": "ES2015",
      "typeRoots": [
         "node_modules/@types",
         "cypress"
      ],
      "types": [
         "cypress",
         "node",
         "cypress-map",
         "cypress-plugin-api"
      ]
   }
}

error:


Cannot find type definition file for 'cypress-map'.
  The file is in the program because:
    Entry point of type library 'cypress-map' specified in compilerOptions

It does not affect the test run, but it is annoying. Is there a way to fix it?

Thank you very much.