https://cypress.io logo
Gitlab pipeline returns error after migrating to T...
# i-need-help
b
We migrated from JS to TS. Before on JS. We were not encountering any error before on JS, after migration to TS that's where the errors came in. Hoping that someone has encountered this before as well Stackoverflow link: https://stackoverflow.com/questions/75333540/gitlab-pipeline-returns-error-when-using-import This is the error we encounter on git push (we use Gitlab btw)
Copy code
Oops...we found an error preparing this test file:
  > cypress/e2e/fetchcookie/fetchCookie.cy.ts
The error was:
Error: Webpack Compilation Error
./cypress/e2e/functions/login.ts
Module not found: Error: Can't resolve '@fixture/userAuto.json' in '/usr/src/app/cypress/e2e/functions'
resolve '@fixture/userAuto.json' in '/usr/src/app/cypress/e2e/functions'
  Parsed request is a module
  using description file: /usr/src/app/package.json (relative path: ./cypress/e2e/functions)
g
I would read the typescript aliases blog post that you can find on my https://cypress.tips/search
3 Views