-
Notifications
You must be signed in to change notification settings - Fork 82
fix: honor forced framework for Remix and Hydrogen #5837
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
Changes from all commits
7898f01
25dd932
ce5817a
2a59c12
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,9 @@ export async function getFramework(frameworkId: FrameworkName, project: Project) | |
| if (detected) { | ||
| return detected | ||
| } | ||
|
|
||
| // this indicate that framework's custom "detect" method doesn't honor the forced framework | ||
| throw new Error(`Forced framework "${frameworkId}" was not detected.`) | ||
|
Comment on lines
+18
to
+19
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This just change error being thrown - previously it would throw
which make no sense, so this just adds specific error message for what is actually happening
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will this be displayed to users? If so, it might be nice to include what action they should be taking.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It should never be visible to user because I did add test in The difficulty with providing something actionable to user is that only custom code in each framework |
||
| } | ||
|
|
||
| const frameworkIds = frameworkList | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.