[ERROR] 'CKEDITOR' is not exported

Hi,
We are using Vaadin 23.3.34 and by just adding the dependency on

        <dependency>
            <groupId>com.wontlost</groupId>
            <artifactId>ckeditor-vaadin</artifactId>
            <version>3.2.1</version>
        </dependency>

our build fails with

[ERROR] ‘CKEDITOR’ is not exported by ‘frontend/generated/jar-resources/ckeditor.js’

Any idea?

Hi. Do you have a Spring Boot project? if so, you need to whitelist the package in application.properties like vaadin.whitelisted-packages=com.wontlost

The issue was that Vite went out of heap memory.

This was also present higher up in the build output:
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

It is resolved by adding an environment variable:
export NODE_OPTIONS=‘–max-old-space-size=8192’

1 Like