Skip to content

Conversation

MikeMcC399
Copy link
Contributor

@MikeMcC399 MikeMcC399 commented Apr 13, 2025

Issue

The Angular test in angular/my-awesome-app outputs the warning:

Missing baseUrl in compilerOptions. tsconfig-paths will be skipped

See logs of actions/workflows/test.yml

Change

Add the following to angular/my-awesome-app/tsconfig.json

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

according to the Angular documentation example https://angular.dev/reference/configs/angular-compiler-options.

Verification

git clone https://github.com/cypress-io/component-testing-quickstart-apps
cd component-testing-quickstart-apps
cd angular/my-awesome-app
npm ci
npx cypress run --component

and confirm that the following warning no longer appears:

Missing baseUrl in compilerOptions. tsconfig-paths will be skipped

Check also logs of actions/workflows/test.yml.

Related

@MikeMcC399 MikeMcC399 marked this pull request as ready for review April 13, 2025 12:09
@AtofStryker
Copy link
Contributor

thank you fixing this @MikeMcC399 !

@AtofStryker AtofStryker merged commit c79be01 into cypress-io:main Apr 14, 2025
4 checks passed
@MikeMcC399 MikeMcC399 deleted the add/typescript-baseurl branch April 14, 2025 16:17
@MikeMcC399
Copy link
Contributor Author

@AtofStryker

thank you fixing this @MikeMcC399 !

You're welcome! I will also take a look at fixing this issue on impacted TypeScript examples in the related https://github.com/cypress-io/cypress-component-testing-apps repo.

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