Going through the documentation of Filemanager for Svelte to set it up for the first time, I encountered that some examples contains errors. Some are quite tricky.
For example on these pages:
https://docs.svar.dev/svelte/filemanager/guides/loading_data/
https://docs.svar.dev/svelte/filemanager/api/actions/provide-data
Using the provided example to load dynamic data, doesn't work.
Turns out that the following line is incorrect:
.then((data) => api.exec("provide-data", { data, parent: id }));
Correct one:
.then((data) => api.exec("provide-data", { data, id }));
or
.then((data) => api.exec("provide-data", { data, id: id }));
There were at least one more from the first examples that Svelte 5 complained about.