From c7d9dfb1b5a17b5f3b6f7e2de02c2f5d3509fe16 Mon Sep 17 00:00:00 2001 From: qz Date: Wed, 3 Jun 2026 17:18:31 +0300 Subject: [PATCH] Declare @mui/utils, @mui/system, @uppy/status-bar as direct deps These packages were imported from source but only present in node_modules transitively via @mui/material and @uppy/react. npm and yarn classic hoist transitive dependencies into a flat node_modules, so the imports happened to resolve; package managers that isolate transitive deps (pnpm in strict mode, yarn PnP) fail to build with "Rollup failed to resolve import" errors. - Add @mui/utils as a direct dep (used by src/theme/index.js for deepmerge). - Switch src/components/Common/Circle.jsx to import Box from @mui/material rather than @mui/system, since @mui/material is already a declared dep and re-exports Box. - Add @uppy/status-bar as a direct dep (its stylesheet is imported by src/components/Snapshots/SnapshotUploadForm.jsx). --- package.json | 2 ++ src/components/Common/Circle.jsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7bcf53a45..3cec2df36 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "@monaco-editor/react": "^4.6.0", "@mui/icons-material": "^7.0.2", "@mui/material": "^7.0.2", + "@mui/utils": "^7.3.11", "@mui/x-data-grid": "^7.29.1", "@qdrant/js-client-rest": "^1.15.1", "@saehrimnir/druidjs": "^0.6.3", @@ -26,6 +27,7 @@ "@uppy/drag-drop": "^4.1.2", "@uppy/progress-bar": "^4.0.2", "@uppy/react": "^4.2.3", + "@uppy/status-bar": "^4.2.3", "@uppy/xhr-upload": "^4.2.3", "@vitejs/plugin-react": "^4.4.1", "autocomplete-openapi": "0.1.6", diff --git a/src/components/Common/Circle.jsx b/src/components/Common/Circle.jsx index 355db4145..b5b00d87f 100644 --- a/src/components/Common/Circle.jsx +++ b/src/components/Common/Circle.jsx @@ -1,6 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { Box } from '@mui/system'; +import { Box } from '@mui/material'; export const Circle = ({ color, size, sx }) => (