Error while using vaadin addon

I am trying to use vaadin addon "TREE’. It is giving following error -
[vite]: Rollup failed to resolve import “@vaadin/field-base/src/slot-styles-mixin.js” from “D:/jmixflow/test/frontend/generated/jar-resources/src/uploadfield/jmix-upload-field.js”.

How to solve this issue?

Thanks

Hi!

As I see, the latest version of this add-on is 3.2.0 and it requires Vaadin 24.2+.

image

The latest released stable version of Jmix Framework is 2.1.1 with Vaadin 24.1.10.

Therefore, the Tree add-on 3.2.0 is not compatible with the latest version of the Jmix Framework.

As an example, you can use the old version of the Tree add-on, 3.1.0:

implementation 'org.vaadin.tatu:tree:3.1.0'

Best regards,
Dmitriy

Thanks, 3.1.0 is working.

How can i provide data to tree from jmix collection. This component require data in this format

tree.setItems(departmentData.getRootDepartments(),
departmentData::getChildDepartments);

Get solution by this
treeWithoutIconSrcProvider.setItems(getRootDepartments(),this::getChildDepartments);