Skip to content

Conversation

@danez
Copy link
Contributor

@danez danez commented Jan 18, 2023

Summary

When the node_modules of the project are not installed then framework-info crashes because getPackageJson() returns { packageJson: undefined } and we do not handle that.

Two fixes to solve the same problem> check if the installedFrameworkPath was found (can be undefined) and otherwise exit, and also make sure we handle packageJson: undefined

This is the same as #4819 without the TS migration.

@danez danez requested review from a team and ericapisani January 18, 2023 10:24
@danez danez self-assigned this Jan 18, 2023
@danez danez requested a review from ascorbic January 18, 2023 10:24
@github-actions
Copy link
Contributor

This pull request adds or modifies JavaScript (.js, .cjs, .mjs) files.
Consider converting them to TypeScript.

Copy link
Contributor

@JGAntunes JGAntunes left a comment

Choose a reason for hiding this comment

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

🚀 ty!

@danez danez merged commit 2e9ff5c into main Jan 18, 2023
@danez danez deleted the fi-fix branch January 18, 2023 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants