Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

309
Views
webpack: ReferenceError: React is not defined

Got this when loading a component: ReferenceError: React is not defined

Tried this solution here: Uncaught ReferenceError: React is not defined

added following to webpack.config.json

externals: {'react': 'React' },

but then I got following error. So what is wrong?

external "React":1 Uncaught ReferenceError: React is not defined
    at 63804 (external "React":1:18)
    at n (bootstrap:19:32)
    at shortcode32.js?ver=2.0.37:2:317202
    at shortcode32.js?ver=2.0.37:2:385167

What files / code should I show to provide you with more info?


Error is raised here:

react-dom.production.min.js:194 ReferenceError: React is not defined
    at R (LoginAndRegistrationL.tsx:2:2)
    at Yi (react-dom.production.min.js:145:98)

in LoginAndRegistrationL.tsx funny, I removed everything from LoginAndRegistrationL.tsx, only a raw componenet I left:

export default function LoginAndRegistrationL(props: {}) {
    return <div></div>
}

Why it raise the error?

This componenet will be visible when a button press happens. Why other component does not raise "React" error, but this yes.

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!