-
Notifications
You must be signed in to change notification settings - Fork 14k
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
React: Vite not running #26351
Comments
@i5x64BIT We have learners install Node's LTS version in the earlier installation lesson (which is v18.18.0 currently). Does this bug persist on Node's LTS version? |
@01zulfi Yes, it is some problem between the latest Vite and the LTS version of node. |
I'm unable to reproduce any errors on the Node's LTS version Commands I used for Vite w/ Vite version # this is the command we use in the curriculum
npm create vite@latest my-first-react-app -- --template react
cd my-first-react-app
npm install
npm run dev
npm run build None of the above gave any errors and worked as expected. Though I did get the this error on Node @i5x64BIT, please confirm. Also, what do you think we should do? Maybe a reminder in the setting up React lesson to use Node LTS? |
@01zulfi Yep, just leave a note about a possible conflict. |
Sounds good. I'm opening the issue up for contribution. Acceptance criteria as follows:
|
Good morning, ☕ I've read the contribution guide. ✅ |
Thanks @ScaxCodes, I've assigned the issue to you. |
Describe your suggestion
In the current lts version of node, the latest vite version throws an error.
as stated in this issue, vite can be run on node version 20.6.1.
Easily fixed it by running
nvm install node
.Maybe add a temporary notice?
Path
Node / JS
Lesson Url
https://www.theodinproject.com/lessons/node-path-react-new-setting-up-a-react-environment
Checks
(Optional) Discord Name
No response
(Optional) Additional Comments
No response
The text was updated successfully, but these errors were encountered: