Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode Error: Cannot find module 'local-cypress' #38

Open
cuixiping opened this issue Sep 9, 2021 · 1 comment
Open

VSCode Error: Cannot find module 'local-cypress' #38

cuixiping opened this issue Sep 9, 2021 · 1 comment

Comments

@cuixiping
Copy link

cuixiping commented Sep 9, 2021

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.

@bahmutov
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants