Next.js Discord

Discord Forum

create-next-app installs the rc version of react and react-dom?

Answered
Masai Lion posted this in #help-forum
Open in Discord
Avatar
Masai LionOP
when I run npx create-next-app@latest my-app it installs the rc version both react and react-dom, and some packages wont work because its not compatible with the rc version. did i miss something?
Answered by Asian black bear
You need to use --legacy-peer-deps because the ecosystem hasn't caught up to adding the RC as a peer dependency. And yes, Next 15 depends on the RC version of React.
View full answer

3 Replies

Avatar
Asian black bear
You need to use --legacy-peer-deps because the ecosystem hasn't caught up to adding the RC as a peer dependency. And yes, Next 15 depends on the RC version of React.
Answer
Avatar
Asian black bear
Avatar
Masai LionOP
thanks @Asian black bear