Skip to content

Declare @mui/utils, @mui/system, @uppy/status-bar as direct deps#391

Open
quetz wants to merge 1 commit into
qdrant:masterfrom
quetz:fix/missing-direct-deps
Open

Declare @mui/utils, @mui/system, @uppy/status-bar as direct deps#391
quetz wants to merge 1 commit into
qdrant:masterfrom
quetz:fix/missing-direct-deps

Conversation

@quetz

@quetz quetz commented Jun 3, 2026

Copy link
Copy Markdown

A few packages are imported from source but only present in node_modules transitively (via @mui/material / @uppy/react). npm and yarn classic hoist transitive deps into a flat node_modules so these imports happen to resolve, but pnpm in strict mode fails the build with Rollup failed to resolve import.

  • Add @mui/utils as a direct dep (used by src/theme/index.js for deepmerge).
  • In Circle.jsx, import Box from @mui/material instead of @mui/system@mui/material re-exports it and is already declared.
  • Add @uppy/status-bar as a direct dep — its stylesheet is imported by SnapshotUploadForm.jsx.

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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant