-
-
Notifications
You must be signed in to change notification settings - Fork 410
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
ReferenceError: Can't find variable: React #282
Comments
same here |
1 similar comment
same here |
Same here. Hi @guilhermefparra Have you got the solution? |
@dima-devs @SwikarBhattarai @guilhermefparra Any update on the issue how we can resolve this??? Please it's urgent |
I did have one solution i.e. to copy the library into your project and use it from there for now. |
@Nawaf007 But how to get rid of that error. Where you have added import React line ?? |
@Nilesh8451 I haven't, since base project has no issues with the imports, it simply loads it. Just place the src folder at a specific directory within your project, and access it. Things might work for you too. |
@Nawaf007 Can we connect for this?? |
same here |
Facing the same issue and even tried the suggested method of moving the library outside the default location and importing it manually. |
Don't move the complete library. Just the code of the library, and install it's dependencies manually, as if it's your own custom code. |
I import react then it starts working fine. |
Got the same problem when trying to implement this library today.
This fix resolved the error here, by adding "import * as React from 'react';" to the top of index.js at But shouldn't this be unnecessary? And if it does need to import react, should it perhaps be done in the package by default? |
Current Behavior
I just installed the lib and was following the Usage guide, and this error occurred: "ReferenceError: Can't find variable: React".
Input Code
Expected behavior/code
A clear and concise description of what you expected to happen (or code).
Environment
react-native-copilot
: v3.2.1react-native
: v0.68.5react-native-svg
: v12.3.0Additional context/Screenshots
The text was updated successfully, but these errors were encountered: