Skip to content
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

Missing styled-jsx dependency in newly created app (yarn 2) #11224

Closed
goszczynskip opened this issue Mar 20, 2020 · 2 comments
Closed

Missing styled-jsx dependency in newly created app (yarn 2) #11224

goszczynskip opened this issue Mar 20, 2020 · 2 comments

Comments

@goszczynskip
Copy link

Bug report

Describe the bug

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.

@arcanis
Copy link
Contributor

arcanis commented Mar 26, 2020

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?

@balazsorban44
Copy link
Member

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 vercel locked as resolved and limited conversation to collaborators Jan 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants