Hi,The editor works perfect in development, however when I packag

Hi,

The editor works perfect in development, however when I package the project I get the following JavaScript error and the editor does not display.

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'VaadinClassicEditor')
    at UO.getEditorByType 
    at UO.createEditor 
    at UO.firstUpdated 
    at UO._$AE 
    at UO.performUpdate 
    at UO.scheduleUpdate 
    at UO._$Ej 

very simply used as such:

var editor = new VaadinCKEditorBuilder().with(builder -> {
    builder.editorData = "<p>This is a classic editor sample.</p>";
    builder.editorType = Constants.EditorType.CLASSIC;
}).createVaadinCKEditor();
editor.setLabel(caption);

The project is Java 17, vaadin 24.1.4, packaged with maven.

How do I get this to work when packaged?

Thanks in advance, Laura.

Same here. Production mode throws that error, and editor is not drawn. Only <label> is rendered.

Same here. Anyone found a solution to this?

Same case for me, I tried everything even creating a ClassicEditor. The problem is in getEditorByType inside the file vaadin-ckeditor.js.

My app was in production, so any help will be appreciated