Open
Description
Current behavior
When trying to import an Enum
alias from a Typescript file within the Cypress folder as described in the docs, the webpack cannot resolve the alias, even though it is defined in the tsconfig.json
file
Desired behavior
Properly import aliases from tsconfig.json
files in the Cypress folder without needing to place tsconfig.json
with at root project directory.
Test code to reproduce
https://github.com/shawn-e-harris/typeScriptAlias.git
Cypress Version
8.2.0
Other
Error: Webpack Compilation Error
./cypress/support/helper/helpers.js
Module not found: Error: Can't resolve '@alias-example/sub-folder/app-code.ts' in '/Users/joel.whalen/Documents/src/reproducers/alias-error-cypress/cypress/support/helper'
resolve '@alias-example/sub-folder/app-code.ts' in '/Users/joel.whalen/Documents/src/reproducers/alias-error-cypress/cypress/support/helper'
Parsed request is a module
using description file: /Users/joel.whalen/Documents/src/reproducers/alias-error-cypress/package.json (relative path: ./cypress/support/helper)
Field 'browser' doesn't contain a valid alias configuration
Looked for and couldn't find the file at the following paths:
Activity