- Created PlantUML diagrams for custodian types, full schema, legal status, and organizational structure. - Implemented a script to generate GraphViz DOT diagrams from OWL/RDF ontology files. - Developed a script to generate UML diagrams from modular LinkML schema, supporting both Mermaid and PlantUML formats. - Enhanced class definitions and relationships in UML diagrams to reflect the latest schema updates.
1.1 KiB
1.1 KiB
UML Viewer Module Export Fix
Issue
The requested module '/src/components/uml/UMLVisualization.tsx' does not provide an export named 'UMLDiagram'
Root Cause
TypeScript interfaces being imported with runtime import statement instead of import type statement.
Solution
Changed import statement in UMLParser.ts:
Before:
import { UMLDiagram, UMLNode, UMLLink } from './UMLVisualization';
After:
import type { UMLDiagram, UMLNode, UMLLink } from './UMLVisualization';
Why This Fixes It
UMLDiagram,UMLNode, andUMLLinkare TypeScript interfaces (type-only exports)- Using
import typetells TypeScript/Vite these are compile-time only imports - Prevents Vite from looking for runtime exports that don't exist
Files Modified
frontend/src/components/uml/UMLParser.ts(line 1)
Testing
- Dev server is running on
http://localhost:5173 - Navigate to
/uml-viewerroute - Should now load without module export errors
Next Steps
- Test the UML Viewer page loads correctly
- Verify schema diagram selection works
- Test zoom, pan, and node interactions