-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
Error in @mui/system: Modules ./typography
and others have no exported member default
#43685
Comments
Nitpick: If anyone encounters this issue, here is a quick fix for Unix systems using Yarn post-install:
Smth like this into
That works also for a new age |
Are you using If you need more help, please provide a CodeSandbox or a repo that we can take a look. |
No, I don’t directly use Details:
Comparison of suitable imports:
Nitpick: |
Here are my 2 cents on automating deployment while the above issue remains unresolved: #43700 (comment) |
Replaced all default exports with named exports to improve module consistency and tree-shaking capabilities. This change ensures uniform export style across the codebase and aids in better maintainability and IDE auto-completion. Bug Report: mui#43685
This Pull Request eliminates undefined exports: #43702 Please review it and let me know if there are any additional contributions or changes needed. Additional note: currently in |
The problem has been fixed by updating the documentation: #43747 |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note We value your feedback @morozow! How was your experience with our support team? |
Steps to reproduce
Link to live example: local dev as there's no TS completion to build live phase
Description:
@mui/system
, the TypeScript compiler throws the following error:Steps to Reproduce
@mui/system
via yarn or follow a Default Installation - Material UI@mui/system
.The same issue with:
./borders
..../cssGrid
..../display
..../flexbox
..../palette
..../positions
..../shadows
..../sizing
..../spacing
..../style
..../typography
...Current behavior
The TypeScript compiler fails with a TS2305 error indicating that
index.d.ts
incorrectly attempts to export a non-existentdefault
member from./typography
.Expected behavior
The TypeScript compiler should complete without errors, allowing for the proper usage of the
@mui/system
package components.Context
Additional Context
Your environment
npx @mui/envinfo
Search keywords: error, types, d.ts
The text was updated successfully, but these errors were encountered: