-
Notifications
You must be signed in to change notification settings - Fork 166
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
fix: React file not added when reactEnabled false #19845
Conversation
Do not add the outlet file if react is not enabled as the required react node files are not available. Fixes #19842
8ff6389
to
1c0b56b
Compare
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A unit test would be good to have, but it probably require efforts to mock things that are mostly private.
@@ -579,7 +579,8 @@ public static boolean validateLicenses(PluginAdapterBase adapter) { | |||
} | |||
|
|||
FrontendDependenciesScanner scanner = new FrontendDependenciesScanner.FrontendDependenciesScannerFactory() | |||
.createScanner(false, adapter.getClassFinder(), true, null); | |||
.createScanner(false, adapter.getClassFinder(), true, null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thought about replacing two calls to adapter by just passing adapter object, but scanner probably shouldn't be coupled to adapter, as it can be called from context where it's not available.
This ticket/PR has been released with Vaadin 24.5.0.alpha13 and is also targeting the upcoming stable 24.5.0 version. |
Do not add the outlet
file if react is not
enabled as the required
react node files are not
available.
Fixes #19842
Fixes vaadin/start#3159