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

Cyperss 10.7.0 - Unable to resolve absolute paths #595

Closed
barnie-karbonhq opened this issue Sep 2, 2022 · 2 comments
Closed

Cyperss 10.7.0 - Unable to resolve absolute paths #595

barnie-karbonhq opened this issue Sep 2, 2022 · 2 comments

Comments

@barnie-karbonhq
Copy link

I am migrating from 8 -> 10 and project set up as below

cypress
config
|__
    cypress_local.config.js
    cypress_ltest.config.js
    cypress_live.config.js

And I have absolute paths allover the project, which worked fine in cypress 8.
When running in cypress 10.7.0m, its not resolving and its resulting in the below error

Error: Webpack Compilation Error
../cypress/e2e/feature-tests/Billing/unbilled.cy.js
Module not found: Error: Can't resolve  '/cypress/support/datacreation.js' in 'C:\Dev\karbonhq-e2e-testing\cypress\e2e\feature-tests\Billing'

root path C:\Dev\karbonhq-e2e-testing\config
      using description file: C:\Dev\karbonhq-e2e-testing\package.json (relative path: ./config/cypress/support/datacreation.js)
        no extension
          Field 'browser' doesn't contain a valid alias configuration

Not sure how to change the root path to C:\Dev\karbonhq-e2e-testing instead of C:\Dev\karbonhq-e2e-testing\config

If I change the absolute paths to relative it works fine. Please help.

@admah
Copy link
Contributor

admah commented Sep 6, 2022

@barnie-karbonhq is this related to using the Cypress GitHub Action or just Cypress in general?

@MikeMcC399
Copy link
Collaborator

Closing due to inactivity.

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