Skip to content
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

Angular: Fix tsConfig paths not resolving for Angular >=12.2 #16882

Merged
merged 1 commit into from
Dec 3, 2021

Conversation

Marklb
Copy link
Member

@Marklb Marklb commented Dec 3, 2021

Issue: #16759

What I did

Added TsconfigPathsPlugin to Angualr >=12.2 Webpack configs.

While trying to make sure the tests, other than windows paths not matching, I ran into a windows specific error that happens when passing undefined to getSystemPath. The tests were failing from the test angular.json configs not defining "sourceRoot".
https://github.com/angular/angular-cli/blob/master/packages/angular_devkit/core/src/virtual-fs/path.ts#L293

How to test

  • Is this testable with Jest or Chromatic screenshots?
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

The tests can probably be improved for detecting this, but I wanted to get the PR submitted tonight.

If your answer is yes to any of these, please make sure to include it in your PR.

@nx-cloud
Copy link

nx-cloud bot commented Dec 3, 2021

Nx Cloud Report

CI ran the following commands for commit f384c0e. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch

Status Command
#000000 nx run-many --target=prepare --all --parallel --max-parallel=15

Sent with 💌 from NxCloud.

@nx-cloud
Copy link

nx-cloud bot commented Dec 3, 2021

Nx Cloud Report

We didn't find any information for the current pull request with the commit f384c0e.
You might need to set the 'NX_BRANCH' environment variable in your CI pipeline.

Check the Nx Cloud Github Integration documentation for more information.


Sent with 💌 from NxCloud.

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM @Marklb -- thanks so much for taking this one. You rock! 🙏

@shilman shilman added the patch:yes Bugfix & documentation PR that need to be picked to main branch label Dec 3, 2021
@shilman shilman merged commit 585abdd into storybookjs:next Dec 3, 2021
@shilman shilman added the patch:done Patch/release PRs already cherry-picked to main/release branch label Dec 3, 2021
shilman added a commit that referenced this pull request Dec 3, 2021
Angular: Fix tsConfig paths not resolving for Angular >=12.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
angular bug patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants