Skip to content

fix(cdk/schematics): remove instanceof check since it was always false when checking if a directory exists #24999

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
May 31, 2022

Conversation

amysorto
Copy link
Contributor

No description provided.

@amysorto amysorto added the target: rc This PR is targeted for the next release-candidate label May 31, 2022
// packages / whether there are multiple versions installed. Typescript
// throws a compilation error if the type isn't specified and we can't
// check the type, so we have to cast the error output to any.
if ((e as any).constructor.name === 'PathIsDirectoryException') {
Copy link
Member

Choose a reason for hiding this comment

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

For additional context in this PR: It was unclear to us why specifically the error instanceof check did not work anymore, but likely due to the schematics being run in another sandbox context.

@devversion devversion added action: merge The PR is ready for merge by the caretaker merge safe labels May 31, 2022
@amysorto amysorto merged commit 299b2f2 into angular:main May 31, 2022
amysorto added a commit that referenced this pull request May 31, 2022
…e when checking if a directory exists (#24999)

(cherry picked from commit 299b2f2)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: rc This PR is targeted for the next release-candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants