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

Can not work well on windows 10 #14

Closed
Pearl4C opened this issue Jan 8, 2020 · 7 comments
Closed

Can not work well on windows 10 #14

Pearl4C opened this issue Jan 8, 2020 · 7 comments

Comments

@Pearl4C
Copy link

Pearl4C commented Jan 8, 2020

Error: Cannot find module 'E:democypress-cucumber-example
ode_modulescypress-cucumber-preprocessorlib/createTestsFromFeature' from 'E:\demo\cypress-cucumber-example\cypress\integration\common'

@pravynandas
Copy link

Appears to be an issue in the way path has been given. Can you provide some more inputs or perhaps a sample of file/module under /common folder?

I do not seem to have any issues running this repo on my windows 10.

@Pearl4C
Copy link
Author

Pearl4C commented Jan 9, 2020

Appears to be an issue in the way path has been given. Can you provide some more inputs or perhaps a sample of file/module under /common folder?

I do not seem to have any issues running this repo on my windows 10.

I just download the source code,do "npm install" & "npm run test", then ...
Error: Cannot find module 'E:democypresscypress-cucumber-example
ode_modulescypress-cucumber-preprocessorlib/resolveStepDefinition' from 'E:\demo\cypress\cypress-cucumber-example\cypress\integration\socialNetworks'

@pravynandas
Copy link

I see an issue in the path you supplied. I think github is suppressing the forwardslash (/) and backslashes (\) making it hard to understand what is the actual path in error. Also seems the 'n' in node_module is treated as new line and ode_modules moved to next line. You can use backslash (\) to escape special characters and use 'Preview' before hitting comment to be sure.

Coming to the issue, nothing appears to be abnormal. including the "npm run test" command which simply runs the default *.feature files supplied in this repo.

@Pearl4C
Copy link
Author

Pearl4C commented Jan 10, 2020

I see an issue in the path you supplied. I think github is suppressing the forwardslash (/) and backslashes () making it hard to understand what is the actual path in error. Also seems the 'n' in node_module is treated as new line and ode_modules moved to next line. You can use backslash () to escape special characters and use 'Preview' before hitting comment to be sure.

Coming to the issue, nothing appears to be abnormal. including the "npm run test" command which simply runs the default *.feature files supplied in this repo.

Modified 'cypress/integration/common/I_see_STRING_in_the_title.js' 'cypress/integration/news/Google/different.js' 'cypress/integration/news/Google/openingGoogle.js' 'cypress/integration/socialNetworks/Facebook/different.js' 'cypress/integration/socialNetworks/Facebook/openingFacebook.js' 'cypress/integration/socialNetworks/Twitter/openingTwitter.js'
cypress-cucumber-preprocessor/steps -->E:/demo/cypress/cypress-cucumber-example/node_modules/cypress-cucumber-preprocessor/steps

then:
The error was:
Error: Cannot find module 'E:democypresscypress-cucumber-example
ode_modulescypress-cucumber-preprocessorlib/createTestsFromFeature' from 'E:\demo\cypress\cypress-cucumber-example\cypress\integration\news'

@antonio-zenoo
Copy link

Just modifying packaje json like this does the trick

  "dependencies": {
    "cypress": "^3.4.1",
    "cypress-cucumber-preprocessor": "1.18.0"
  },

The issue with Windows 10 started with a modification that went into 1.19.0

@Pearl4C
Copy link
Author

Pearl4C commented Jan 14, 2020

Just modifying packaje json like this does the trick

  "dependencies": {
    "cypress": "^3.4.1",
    "cypress-cucumber-preprocessor": "1.18.0"
  },

The issue with Windows 10 started with a modification that went into 1.19.0
antonio-zenoo ,
Thanks very much, you solved my problem!

@antonio-zenoo
Copy link

FYI with version 2.0.1 this has been fixed.

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

3 participants