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

learnnextjs.com installs react 16 and fails to compile #2997

Closed
1 task done
MadelineRitchie opened this issue Sep 26, 2017 · 7 comments
Closed
1 task done

learnnextjs.com installs react 16 and fails to compile #2997

MadelineRitchie opened this issue Sep 26, 2017 · 7 comments

Comments

@MadelineRitchie
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Steps at https://learnnextjs.com/basics/getting-started/setup should succeed compilation and show 404 in the browser.

Current Behavior

ERROR Failed to compile with 1 errors

15:19:19

This module was not found:

  • react-dom/lib/ReactReconciler in ./node_modules/next/dist/client/next-dev.js

To install it, you can run: npm install --save react-dom/lib/ReactReconciler
(node:78867) DeprecationWarning: Module.chunks: Use Module.forEachChunk/mapChunks/getNumberOfChunks/isInChunk/addChunk/removeChunk instead

Ready on http://localhost:3000

Steps to Reproduce

Steps are at https://learnnextjs.com/basics/getting-started/setup

Context

This is my initial discovery of nextjs and my first exploration of the learning resources.

Your Environment

Tech Version
next 3.2.2
node 8.1.2
OS macOS 10.12.6
browser Chrome 61
nvm 0.32.1
@glennreyes
Copy link

Related: #1098

@MadelineRitchie
Copy link
Author

For any beginners trying to get past this, simply replace the npm install command with the following:

npm install --save react@15 react-dom@15 next

@timneutkens
Copy link
Member

@jasonritchie I've updated the readme, next.js v4 beta will be released soon by @rauchg. 👍

@sscaff1
Copy link

sscaff1 commented Sep 30, 2017

npm i --save next@4.0.0-beta.2 worked for me.

@yantakus
Copy link

yantakus commented Nov 2, 2017

This should be closed I suppose as next v4 is out of beta for a long time.

@timneutkens
Copy link
Member

👍

@lock
Copy link

lock bot commented May 10, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 10, 2018
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

5 participants