flow icon indicating copy to clipboard operation
flow copied to clipboard

File was not included when creating the production bundle

Open avdhootu27 opened this issue 2 weeks ago • 5 comments

Description of the bug

This bug I am getting since I updated my project to vaadin 24. The full error is:

ERROR c.v.f.component.internal.UIInternals - The component class com.vaadin.flow.component.textfield.TextArea includes '@vaadin/text-area/src/vaadin-text-area.js' but this file was not included when creating the production bundle. The component will not work properly. Check that you have a reference to the component and that you are not using it only through reflection. If needed add a @Uses(TextArea.class) where it is used.\n

I tried using Uses annotation, JsModule annotation but nothing worked. I haven't extended TextArea for any component, I am using it inside a component.

Expected behavior

Should not get this error.

Minimal reproducible example

I don't know what to share because I don't get this error/log when I run it locally, I get this when it is running on an amazon linux machine

Versions

  • Vaadin / Flow version: 24.3.10
  • Java version: 17
  • OS version: Sonoma 13.5
  • Browser version (if applicable): chrome
  • Application Server (if applicable): tomcat
  • IDE (if applicable): intellij

avdhootu27 avatar Jun 25 '24 10:06 avdhootu27