-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
NoSsr and useAutocomplete undefined when grouping imports #28526
Comments
@Forchapeatl the documentation allows for either. Neither should break the application. Please see documentation. https://mui.com/api/button/#import |
I'm having the same issue. {
"dependencies": {
"@emotion/react": "^11.4.1",
"@emotion/styled": "^11.3.0",
"@mui/icons-material": "^5.0.0",
"@mui/material": "^5.0.0",
"@mui/styles": "^5.0.0",
"deepcopy": "^2.1.0",
"parcel": "^2.0.0-rc.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "^5.3.0"
},
"devDependencies": {
"@parcel/transformer-image": "^2.0.0-rc.0"
}
} |
It doesn't look like this bug report has enough info for one of us to reproduce it. Please provide a CodeSandbox (https://material-ui.com/r/issue-template-latest), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem. Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve |
In the main description I included a link to a repo that has the problem setup with both working and not working examples. The issue does not occur on codesandbox. What else specifically do you need? |
Didn't see that, sorry. Since you're using Parcel, it's only a release candidate and other bundlers work well, I would suggest opening this issue against the Parcel repository and report back if this is actually an issue on our side. |
Okay then |
Issue was fixed via parcel, see ticket here parcel-bundler/parcel#7016 |
mui has bad imports (noSsr and useAutocomplete) causing a typeError when trying to group imports. (using parcel for packaging)
Current Behavior 😯
The noSsr and useAutocomplete components in @mui/core are not importing properly.
in node_modules/@mui/material/index.js comment out the two exports (NoSsr & useAutocomplete) and everything goes back to normal.
Expected Behavior 🤔
Expect to be able to group the imports without breaking the application.
Steps to Reproduce 🕹
Here is a sample project
https://github.com/wunderman4/muiParcelBadImports/tree/main
Steps:
Context 🔦
the error is cryptic and cost me some serious debugging time thinking it was a problem with my code.
Your Environment 🌎
`npx @mui/envinfo`
The text was updated successfully, but these errors were encountered: