Join Discord
Powered by
Absolute imports for modules with Cypress 12
# i-need-help
f
famous-wire-30070
05/22/2023, 2:12 AM
I'm unable to get absolute imports for local modules working with Cypress. I've tried multiple things: 1. Cypress Webpack Preprocessor
https://github.com/cypress-io/cypress/tree/master/npm/webpack-preprocessor
2. tsconfig-paths
https://github.com/cypress-io/cypress/issues/3262#issuecomment-683267360
3. module-alias
https://github.com/ilearnio/module-alias
All of these are throwing various errors. I can't find any instructions for how to get absolute imports working with Cypress 12. All the info I've found online seems to be for older versions of Cypress, but when I tried it with the latest version, none worked. Does anyone know a guide for setting up absolute imports with Cypress 12?
Previous
Next