local-cypress icon indicating copy to clipboard operation
local-cypress copied to clipboard

VSCode Error: Cannot find module 'local-cypress'

Open cuixiping opened this issue 4 years ago • 1 comments

import { cy } from "local-cypress"

I got an error in VSCode:

Cannot find module 'local-cypress'. Did you mean to set the 'moduleResolution' option to 'node', 
or to add aliases to the 'paths' option? ts(2792)

So I added "moduleResolution": "node" to tsconfig.json.

{
  "compilerOptions": {
    "moduleResolution": "node",
    ...
  },
  ...
}

I hope this configuration requirement to be mentioned in local-cypress documentation.

cuixiping avatar Sep 09 '21 12:09 cuixiping

Hi @cuixiping do you mind opening a pull request with this update to the README file?

bahmutov avatar Mar 28 '22 11:03 bahmutov