Skip to content

[Tree-widget]: move to MUI - #1748

Draft
MartynasStrazdas wants to merge 6 commits into
tree-widget/nextfrom
mast/move-to-mui
Draft

[Tree-widget]: move to MUI#1748
MartynasStrazdas wants to merge 6 commits into
tree-widget/nextfrom
mast/move-to-mui

Conversation

@MartynasStrazdas

@MartynasStrazdas MartynasStrazdas commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

No description provided.

// are not listed in tree-widget's peerDependencies and thus not covered by `collectDepsFromPackage`.
// Without deduping them, the build resolves them from both this app's and tree-widget's node_modules,
// producing distinct `RootContext` objects and a "RootContext is undefined" crash at runtime.
"@stratakit/foundations",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@saskliutas not sure how we wanna handle this.

@saskliutas saskliutas Jul 28, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to dedupe @stratakit/foundations? It should not be referenced directly by any of the packages (tree-widget, test-viewer, etc). Only stratakit/mui should be used. Isn't it enough to dedupe that?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from what i gathered because we use sharedWorkspaceLockfile: false, we get one copy of foundations from tree-widget and one from test-viewer, both coming from their own stratakit/mui, when we dedupe as i understand we get one stratakit/mui with 2 foundations which both create a context. (to be able to dedupe it i need to keep foundations as a dep in test-viewer),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it's ok to add foundations as dep in test-viewer if that helps.

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.

2 participants