-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Description
- The issue is present in the latest release.
- I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 😯
After a clean installation of @next (alpha 14) with CRA, @emotion/core and @emotion/styled are not in scope for the project. Importing a component from from @material-ui reveals that the peer dependencies are not installed. @material-ui/styled-engine/index.js relies on emotion.
Expected Behavior 🤔
Using a component from Material-UI should work without having to install additional peer dependencies.
Steps to Reproduce 🕹
https://codesandbox.io/s/relaxed-dust-99u5t?file=/src/App.js
Context 🔦
I understand this may be intentional as I haven't followed too closely to the discussion of what will be the default styling solution in V5. If it is the default, it should probably be moved from a peerDependency to dependency. Otherwise this may just be a temporary inconvenience until it is determined how to select what styling library you would like to use under the hood.
Your Environment 🌎
| Tech | Version |
|---|---|
| Material-UI | v5.0.0-alpha14 |
| React | v17.0.0 |