Kong/insomnia · error · Error
No projects found in the selected directory
Error message
No projects found in the selected directory
What it means
Thrown by processBulkProjectImport when the directory chosen for bulk project import contains no recognizable project folders (getProjectFolders returned nothing importable), so there is nothing to add to the import list.
Solutions
- Select a directory that actually contains Insomnia project exports/folders with valid import files
- Verify the export structure matches what the importer expects (project folders with collection files)
- Re-export from the source so project folders are present
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at packages/insomnia/src/ui/components/modals/import-modal/import-projects-modal.tsx:552 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Kong/insomnia@d9bb2b0142 (2026-08-26).
Data as JSON: /api/errors/69b3c67181f45d6d.
Report an issue: GitHub.
Appendix: source
Thrown at packages/insomnia/src/ui/components/modals/import-modal/import-projects-modal.tsx:552
}
// Only necessary if skipExisting is true
const existingProjects = skipExisting ? await services.project.listByOrganizationIds(organizationId) : [];
// Load projects from the root folder
const projectItems: ProjectImportItem[] = (await rootFolder.getProjectFolders()).map((projectFolder, i) => ({
key: `${organizationId}-${i}-${projectFolder.name}`,
name: projectFolder.name,
status:
skipExisting && existingProjects.find(p => p.name === projectFolder.name)
? ImportStatus.SKIPPED
: ImportStatus.PENDING,
scanResults: [],
folder: projectFolder,
}));
if (projectItems.length === 0) {
throw new Error('No projects found in the selected directory');
}
// Sort project items by name
projectItems.sort((a, b) => a.name.localeCompare(b.name));
setProjectItems(projectItems);
// Start import process for the projects
setProcessingUiStatus('importing');
const startImportForProject = async (project: ProjectImportItem) => {
const projectIndex = projectItems.indexOf(project);
const updateProjectItem = (updates: Partial<ProjectImportItem>) => {
setProjectItems(prevItems => {
const newItems = [...prevItems];
newItems[projectIndex] = { ...newItems[projectIndex], ...updates };
return newItems;
});View on GitHub (pinned to d9bb2b0142)