You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Created next js app misses styled-jsx dependency. This creates error when running yarn dev via yarn 2 (berry). Package json should contain styled-jsx dependency or next.js code shouldn't call it.
To Reproduce
Create new app.
Set yarn to newest version yarn ser version berry.
Run yarn dev
Error message:
...
[ error ] ./pages/index.js
Module not found: Your application tried to access styled-jsx, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound.
...
Expected behavior
It should compile successfully.
The text was updated successfully, but these errors were encountered:
Duplicate of #10149 - I described the solution there (the reexport + babel), but I don't have bandwidth at the moment to push it myself. Would you be interested to give it a look by any chance?
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
vercel
locked as resolved and limited conversation to collaborators
Jan 30, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug report
Describe the bug
Created next js app misses
styled-jsx
dependency. This creates error when runningyarn dev
via yarn 2 (berry). Package json should containstyled-jsx
dependency ornext.js
code shouldn't call it.To Reproduce
yarn ser version berry
.yarn dev
Error message:
Expected behavior
It should compile successfully.
The text was updated successfully, but these errors were encountered: