btholt / btholt/complete-intro-to-react-v8

Vite not loading React

Open
#95 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.8k
Forks
199
PR merge metrics
No merged PRs in 30d

Description

After installing vite and running the vite server, I try to run my code, but get an error message:

Uncaught ReferenceError: React is not defined
at App.jsx:19:13

I've attached my code

[adopt_me.zip](https://github.com/btholt/complete-intro-to-react-v8/files/14900107/adopt_me.zip)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by extracting adopt_me.zip and reproducing the Vite server error in App.jsx at line 19. Inspect how React is referenced there and verify the app loads without the “React is not defined” error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react, vite
Domain
frontend, web-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.