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
Server restart is required after removing a file from the theme 'components' folder #9948
Comments
The documented limitation says that manual refresh in browser is needed (https://github.com/vaadin/docs/blob/latest/articles/theming/creating-a-custom-theme.asciidoc#limitations), and this is not enough as the error doesn't go away after refresh and a manual webpack restart is needed instead. Also the documentation is not clear that some removals cause errors
So by minimum, we should look into a) fixing the documented limitation b) figuring out if we can catch the failure somehow and force a restart or improve the error message somehow ? |
To be investigated more - we should be able to pick the removal of the file before webpack compilation and react to that, or then make sure that our plugin is not causing the failure due to the missing file. Timeboxed investigation for this is a good way to start. |
Related-to vaadin/flow#9948 Co-authored-by: Jouni Koivuviita <jouni@vaadin.com>
Related-to vaadin/flow#9948 Cherry-picked from 'latest'.
Related-to vaadin/flow#9948 Cherry-picked from 'latest'. Co-authored-by: Marko Grönroos <magi@iki.fi>
Adds parent themes component folders to be watched by webpack. Related-to: #9948
Adds parent themes component folders to be watched by webpack. Related-to: #9948
Adds parent themes component folders to be watched by webpack. Related-to: #9948
This ticket/PR has been released with platform 14.6.0.rc1. For prerelease versions, it will be included in its final version. |
This ticket/PR has been released with platform 19.0.7. For prerelease versions, it will be included in its final version. |
Adds parent themes component folders to be watched by webpack. Related-to: #9948
This ticket/PR has been released with platform 20.0.0.beta2. For prerelease versions, it will be included in its final version. |
Description of the bug / feature
If you delete e.g.
frontend/themes/components/vaadin-button.css
, webpack compilation will then fail withMinimal reproducible example
mvn
Expected behavior
The theme is recompiled without the button css
Versions:
The text was updated successfully, but these errors were encountered: