-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
scope: stylesSpecific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5.Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5.
Description
Many of the components use React "addons", which is aliased from react/addons to just react in the browser field in package.json.
On the server, this breaks rendering because it does not pull in the addons. There is no way to do the browserify-style aliasing on the server (as far as I know).
I think the solution should be to get rid of the browser aliasing in package.json and just use require('react/addons') instead of require('react') within the components.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
scope: stylesSpecific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5.Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5.