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

IconField: Reference error React is not defined, im using vite #6585

Open
kamel996 opened this issue May 7, 2024 · 4 comments
Open

IconField: Reference error React is not defined, im using vite #6585

kamel996 opened this issue May 7, 2024 · 4 comments
Labels
Resolution: Cannot Replicate Issue could not be replicated by Core Team

Comments

@kamel996
Copy link

kamel996 commented May 7, 2024

Describe the bug

when i import the IconField component and use it in my component so it shows me this error

primereact_inputicon_inputicon.js?t=1715086871785&v=648092a4:120 Uncaught ReferenceError: React is not defined
at node_modules/primereact/inputicon/inputicon.js (primereact_inputicon_inputicon.js?t=1715086871785&v=648092a4:120:11)
at __require (chunk-UV5CTPV7.js?v=62a634b4:9:50)
at primereact_inputicon_inputicon.js?t=1715086871785&v=648092a4:123:16
node_modules/primereact/inputicon/inputicon.js @ primereact_inputicon_inputicon.js?t=1715086871785&v=648092a4:120
__require @ chunk-UV5CTPV7.js?v=62a634b4:9
(anonymous) @ primereact_inputicon_inputicon.js?t=1715086871785&v=648092a4:123
Show 3 more frames
Show less

Reproducer

No response

PrimeReact version

latest

React version

18.2

Language

TypeScript

Build / Runtime

React Vite

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@kamel996 kamel996 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 7, 2024
@Rekl0w
Copy link
Contributor

Rekl0w commented May 7, 2024

Can you provide a stackblitz link please ?

@kamel996
Copy link
Author

kamel996 commented May 7, 2024

@Rekl0w
Copy link
Contributor

Rekl0w commented May 7, 2024

https://stackblitz.com/edit/iairs4?file=src%2FApp.jsx

Can you look at this link ? Looks like it is working.

@melloware melloware added Resolution: Cannot Replicate Issue could not be replicated by Core Team and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels May 7, 2024
Copy link

github-actions bot commented May 7, 2024

We're unable to replicate your issue, if you are able to create a reproducer or add details please edit this issue. This issue will be closed if no activities in 20 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Cannot Replicate Issue could not be replicated by Core Team
Projects
None yet
Development

No branches or pull requests

3 participants