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

Uncaught ReferenceError: React is not defined #120

Open
Crunchyman-ralph opened this issue Sep 2, 2022 · 0 comments
Open

Uncaught ReferenceError: React is not defined #120

Crunchyman-ralph opened this issue Sep 2, 2022 · 0 comments

Comments

@Crunchyman-ralph
Copy link

Crunchyman-ralph commented Sep 2, 2022

Issue summary

Write a short description of the issue here ↓

Get this error:

Uncaught ReferenceError: React is not defined

When trying to import a React Component into index and trying to import that index inside a page

.
├── ...
├── components                 
│   ├── ProductsCard         
│           ├── index.tsx
│           └── ProductsCard.tsx
└── ...

Expected behavior

What do you think should happen?

Should be able to compile correctly

Actual behavior

What actually happens?

Uncaught ReferenceError: React is not defined

Steps to reproduce the problem

  1. Create a Directory inside components ProductsCard for example
  2. create an index.tsx file with import * from './ProductsCard'
  3. import {ProductsCard} from 'frontend/components/ProductsCart' inside pages/index.tsx
  4. Will get an error Uncaught ReferenceError: React is not defined

Reduced test case

The best way to get your bug fixed is to provide a reduced test case.

Specifications

  • Browser: Chrome
  • Device: Computer
  • Operating System: Windows 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant