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

Can't resolve 'react/jsx-dev-runtime' #1

Open
bartvdbraak opened this issue Jul 2, 2021 · 0 comments
Open

Can't resolve 'react/jsx-dev-runtime' #1

bartvdbraak opened this issue Jul 2, 2021 · 0 comments

Comments

@bartvdbraak
Copy link

bartvdbraak commented Jul 2, 2021

I am getting

error - ./pages/_app.js
Module not found: Can't resolve 'react/jsx-dev-runtime' in '<WorkingDirectory>/nextjs/pages'

after yarn install and then yarn dev

also installing the packages with npm is currently broken too and requires --legacy-peer-deps flag.
I am not the most fluent with NPM so if I am doing something wrong, please tell me.

EDIT: I think I somehow broke my install by first using npm i (i think it removed yarn.lock ?). I cloned this repository again and just started using yarn install and yarn dev and it seems to be working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant