Closed sahrmann closed 2 months ago
Does reproduce for me, also when running mvn package -Pproduction
. Investigating for the cause.
This ticket/PR has been released with Vaadin 24.5.0.alpha10 and is also targeting the upcoming stable 24.5.0 version.
This ticket/PR has been released with Vaadin 24.4.11.
I still have the issue in Vaadin 24.4.12 on this project: https://github.com/jcgueriaud1/spring-petclinic-vaadin-flow/tree/hilla
After a clean/clean-frontend,... the vaadin-featureflags.js is still wrong:
// @ts-nocheck
window.Vaadin = window.Vaadin || {};
window.Vaadin.featureFlags = window.Vaadin.featureFlags || {};
window.Vaadin.featureFlags.exampleFeatureFlag = false;
window.Vaadin.featureFlags.collaborationEngineBackend = false;
window.Vaadin.featureFlags.webPush = false;
window.Vaadin.featureFlags.formFillerAddon = false;
window.Vaadin.featureFlags.hillaI18n = false;
window.Vaadin.featureFlags.copilotFlow = false;
window.Vaadin.featureFlags.copilotI18n = false;
window.Vaadin.featureFlags.copilotExperimentalFeatures = false;
export {};
Describe the bug
I have a file
vaadin-featureflags.properties
which containscom.vaadin.experimental.hillaI18n=true
. In my local environment, thei18n
-instance can be used without problems. However, in my production build, the frontend crashes with the errorThe Hilla I18n API is currently considered experimental and may change in the future. To use it you need to explicitly enable it in Copilot or by adding com.vaadin.experimental.hillaI18n=true to vaadin-featureflags.properties
.I investigated the issue and while
prepare-frontend
creates a correctvaadin-featureflags.js
, using the goalvaadin:build-frontend
creates the file with all features set tofalse
.Expected-behavior
No response
Reproduction
Create a
vaadin-featureflags.properties
which containscom.vaadin.experimental.hillaI18n=true
and runmvn vaadin:build-frontend
. The generatedsrc/main/frontend/generated/vaadin-featureflags.js
containswindow.Vaadin.featureFlags.hillaI18n = false;
.System Info
Windows/Linux, Vaadin 24.4.4