Skip to content

fix: add TypeScript baseUrl in examples #52

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

Merged
merged 1 commit into from
Apr 24, 2025

Conversation

MikeMcC399
Copy link
Contributor

Issue

Multiple TypeScript projects output the following warning when Cypress is run:

Missing baseUrl in compilerOptions. tsconfig-paths will be skipped

See logs of actions/workflows/main.yml

  • angular
  • angular-standalone
  • react-next14-ts
  • react-next15-ts
  • react-vite-ts
  • vue3-vite-ts

Change

Add the following to tsconfig.json in the root directory of each of the impacted projects listed above:

  "compilerOptions": {
    "baseUrl": "./",
...
},

Verification

View workflow logs of jobs in actions/workflows/main.yml and confirm that the following warning no longer appears:

Missing baseUrl in compilerOptions. tsconfig-paths will be skipped

Related

@MikeMcC399 MikeMcC399 force-pushed the add/typescript-baseurl branch from 572c0b9 to 4e0078e Compare April 18, 2025 04:15
@AtofStryker AtofStryker merged commit 28771a1 into cypress-io:main Apr 24, 2025
10 checks passed
@MikeMcC399 MikeMcC399 deleted the add/typescript-baseurl branch April 24, 2025 17:16
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

Successfully merging this pull request may close these issues.

2 participants