[GH-ISSUE #29] Error with adding documents on newly initialized project #18

Closed
opened 2026-02-22 18:17:28 -05:00 by yindo · 2 comments
Owner

Originally created by @didrio on GitHub (Jun 11, 2023).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/29

The server and frontend are set up and working, but when trying to add documents to a workspace (clicking the + folder icon), I get this error:

Uncaught TypeError: Cannot read properties of undefined (reading 'items') at toggleSelection

Which is from this line:

const folderItems = directories.items.find((item) => item.name === parent).items;

And I'm not sure how to solve it

Originally created by @didrio on GitHub (Jun 11, 2023). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/29 The server and frontend are set up and working, but when trying to add documents to a workspace (clicking the + folder icon), I get this error: `Uncaught TypeError: Cannot read properties of undefined (reading 'items') at toggleSelection` Which is from this line: `const folderItems = directories.items.find((item) => item.name === parent).items;` And I'm not sure how to solve it
yindo added the question label 2026-02-22 18:17:28 -05:00
yindo closed this issue 2026-02-22 18:17:28 -05:00
Author
Owner

@timothycarambat commented on GitHub (Jun 11, 2023):

Have to run the collector and have any documents in the server/documents folder?

@timothycarambat commented on GitHub (Jun 11, 2023): Have to run the `collector` and have any documents in the `server/documents` folder?
Author
Owner

@timothyasp commented on GitHub (Jun 12, 2023):

This error is fixed in #40 - unrelated to adding documents, but I did the same thing first go around. Thought that the "+" icon would bring up a file window.

@timothyasp commented on GitHub (Jun 12, 2023): This error is fixed in #40 - unrelated to adding documents, but I did the same thing first go around. Thought that the "+" icon would bring up a file window.
yindo changed title from Error with adding documents on newly initialized project to [GH-ISSUE #29] Error with adding documents on newly initialized project 2026-06-05 14:33:01 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#18