Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Toolpad apps compatible with pnpm #3074

Merged
merged 12 commits into from
Jan 12, 2024
Merged

Make Toolpad apps compatible with pnpm #3074

merged 12 commits into from
Jan 12, 2024

Conversation

Janpot
Copy link
Member

@Janpot Janpot commented Jan 11, 2024

Close #2244

Turns out that our pnpm migration is blocked on this. After migrating, it became impossible to run the examples. This PR switches the root dir of the toolpad application to the module itself. That way all module resolution happens from the correct folder. User modules like components are reselved with an alias. I've added a mechanism to fallback module imports of @mui/material in custom components to the toolpad nested one. This allows users to create custom components with errors if they didn't install @mui/material first.

@Janpot Janpot added the core Infrastructure work going on behind the scenes label Jan 11, 2024
@Janpot Janpot changed the title Correct nested dependencies in optimizeDeps Make Toolpad compatible with pnpm Jan 11, 2024
@Janpot Janpot marked this pull request as ready for review January 12, 2024 09:25
@Janpot Janpot changed the title Make Toolpad compatible with pnpm Make Toolpad apps compatible with pnpm Jan 12, 2024
@Janpot Janpot requested a review from a team January 12, 2024 09:28
@Janpot Janpot merged commit e173a8b into master Jan 12, 2024
11 checks passed
@Janpot Janpot deleted the Janpot-patch-4 branch January 12, 2024 15:00
@Janpot Janpot mentioned this pull request Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PNPM not supported; Failed to resolve dependency
2 participants