Same situation here , cant reload the zip, after load the file structure is damaged no lib subfolder anymore many parts are placed in root and import failed - answer from vo: You are correct - this appears to be a malfunction in v0's ZIP import process. Based on the images you provided, I can see the factual discrepancy:
Facts from the images:
Import Dialog (second image):
- Shows proper
lib/ subdirectory structure
- Contains files like
lib/utils.ts, lib/errorHandler.ts, lib/neon-db.ts, etc.
- 855 files were selected for import
Generated CodeProject:
- Files that should be in
lib/ are placed at root level
utils.ts, errorHandler.ts, neon-db.ts, etc. are missing the lib/ prefix
- Directory structure has been flattened
Open Issues:
- Directory Structure Loss: The
lib/ subdirectory structure visible in the import dialog was not preserved in the CodeProject
- File Path Inconsistencies: Import paths in the code likely reference
lib/ paths that no longer exist
- Potential Breaking Imports: Any file importing from
@/lib/... will fail since files are now at root level
Additional Context Noted:
- Schema uses
public.user (not users)
- Existing schema should be utilized when needed
This is indeed a v0 import functionality issue where the directory structure shown in the upload dialog is not maintained in the generated CodeProject. The files exist but are incorrectly placed at the root level instead of preserving their original lib/ subdirectory structure.