bahmutov / cypress-map

Cypress query commands for v12+
https://glebbahmutov.com/blog/cypress-v12/
MIT License
48 stars 2 forks source link

Typescript tsconfig shows error for cypress-map with Cypress 12 #69

Open chaussen opened 1 year ago

chaussen commented 1 year ago

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.

bahmutov commented 4 days ago

@chaussen is this still happening?

chaussen commented 1 day ago

Yes @bahmutov I have already been using Cypress 13 for a whilie and this error never goes away.