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
Can't build a simple CRA app with v11.8.0 #2649
Comments
Thanks for the report - I will check this out asap |
Hi there, I'm willing to help 🙂 Feel free to ask. Cheers, |
confirmed, an easy way to re-produce is to use a 'Container' from mui. import Container from "@mui/material/Container";
function App() {
return <Container>Hello, World!</Container>;
}
export default App; error
|
Confirmed here too, I've also just hit this error after upgrading Error:
Environment information:
|
Confirmed here too, I'm also having trouble upgrading from 11.7.1 to 11.8.0. |
I faced same issue. I solve it via following command. $ npm i react@beta react-dom@beta by this command, |
I've created a fix here and verified that it should work with CRA. I'm waiting for the CI and stuff but I should be able to release this somewhat soon. |
I am also facing the same issue |
To save anyone else time... Andarist 's fix is no longer in place, and the error is back. The changlelog now says 11.10.4Patch Changes
|
Please always try to share a repro case in a runnable form - either by providing a git repository to clone or a codesandbox. OSS maintainers usually can't afford the time to set up the repro, even if exact steps are given. |
Sure, I could demonstrate the problem if there is interest in fixing it. But what I'm seeing is exactly what the Changelog entry says to expect. In my case, our library (configr-) uses emotion as a peer dependency and is bundled with vite. When our app, using only React 17, consumes the config-r library with webpack, we get 263 lines of warnings for React.useInsertionEffect and React.useId. Let me know if you think it's worth creating a new issue for that. Thanks! |
You might be specifying Emotion as a peer in If you actually want to bundle Emotion then:
|
Current behavior:
A build of a CRA app with React 17, MUI 5 (thus requiring emotion) fails quickly with:
This looks like the lib erroneously try to require something that's only available in React 18, while my app uses React 17.
To reproduce:
I can build a CSB if you feel it's better, but really the steps are:
Expected behavior:
Build succeeds
Environment information:
react
version: 17.0.2@emotion/react
version: 11.8.0The text was updated successfully, but these errors were encountered: