Skip to content

Commit 0a8b75b

Browse files
author
ChidcGithub
committed
fix: resolve npm peer dependency conflict and remove unused import
- Add npm overrides for cytoscape-react to support React 19 - Remove unused ASTParser import from analysis.py
1 parent 858f4e9 commit 0a8b75b

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

backend/routers/analysis.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
CodeInput, AnalysisResult, ComplexityMetrics, SeverityLevel
1515
)
1616
from ..exceptions import CodeParsingError, CodeTooLargeError, AnalysisError
17-
from ..ast_parser import ASTParser
1817
from ..utils import AnalyzerFactory, get_parser
1918

2019
logger = logging.getLogger(__name__)

frontend/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,11 @@
4646
"last 1 firefox version",
4747
"last 1 safari version"
4848
]
49+
},
50+
"overrides": {
51+
"cytoscape-react": {
52+
"react": "^19.0.0",
53+
"react-dom": "^19.0.0"
54+
}
4955
}
5056
}

0 commit comments

Comments
 (0)