vercel / next-react-server-components

Demo repository for Next.js + React Server Components
https://next-rsc-hn.vercel.app
MIT License
979 stars 158 forks source link

Not able to start the project in dev #19

Closed curiosbasant closed 2 years ago

curiosbasant commented 2 years ago

I've cloned this repo demo, and tried to run it with yarn dev, but it is not working and giving the following error. image

f-o-w-l commented 2 years ago

I also experienced this issue and solved it by switching node to the LTS version. Shout out to the asdf library which allows switching between different node package versions globally and by directory as easily as asdf local nodejs lts.

curiosbasant commented 2 years ago

I also experienced this issue and solved it by switching node to the LTS version. Shout out to the asdf library which allows switching between different node package versions globally and by directory as easily as asdf local nodejs lts.

Hey thanks, but I do have node v17.2.0 installed, isn't that enough?

f-o-w-l commented 2 years ago

I also experienced this issue and solved it by switching node to the LTS version. Shout out to the asdf library which allows switching between different node package versions globally and by directory as easily as asdf local nodejs lts.

Hey thanks, but I do have node v17.2.0 installed, isn't that enough?

The LTS version stands for "long-term support". In nodejs's case this "guarantees that critical bugs will be fixed for a total of 30 months," other libraries might define it slightly differently. Right now the LTS node version is 16.13.1.

curiosbasant commented 2 years ago

Thanks, installing lts for node, did solved the issue.