local-cypress
local-cypress copied to clipboard
VSCode Error: Cannot find module 'local-cypress'
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.
Hi @cuixiping do you mind opening a pull request with this update to the README file?