Giter Club home page Giter Club logo

Comments (13)

Salmankhan033 avatar Salmankhan033 commented on June 2, 2024 1

I import react then it starts working fine.
see the below answer
https://stackoverflow.com/a/76406743/14266627

from react-native-copilot.

SwikarBhattarai avatar SwikarBhattarai commented on June 2, 2024

same here

from react-native-copilot.

Nawaf007 avatar Nawaf007 commented on June 2, 2024

same here

from react-native-copilot.

dima-devs avatar dima-devs commented on June 2, 2024

Same here. Hi @guilhermefparra Have you got the solution?

from react-native-copilot.

Nilesh8451 avatar Nilesh8451 commented on June 2, 2024

@dima-devs @SwikarBhattarai @guilhermefparra Any update on the issue how we can resolve this??? Please it's urgent

from react-native-copilot.

Nawaf007 avatar Nawaf007 commented on June 2, 2024

I did have one solution i.e. to copy the library into your project and use it from there for now.

from react-native-copilot.

Nilesh8451 avatar Nilesh8451 commented on June 2, 2024

@Nawaf007 But how to get rid of that error. Where you have added import React line ??

from react-native-copilot.

Nawaf007 avatar Nawaf007 commented on June 2, 2024

@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.

from react-native-copilot.

Nilesh8451 avatar Nilesh8451 commented on June 2, 2024

@Nawaf007 Can we connect for this??

from react-native-copilot.

cnhuz avatar cnhuz commented on June 2, 2024

same here

from react-native-copilot.

SyntaxError403 avatar SyntaxError403 commented on June 2, 2024

Facing the same issue and even tried the suggested method of moving the library outside the default location and importing it manually.

from react-native-copilot.

Nawaf007 avatar Nawaf007 commented on June 2, 2024

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.

from react-native-copilot.

Saigronas avatar Saigronas commented on June 2, 2024

Got the same problem when trying to implement this library today.

I import react then it starts working fine. see the below answer https://stackoverflow.com/a/76406743/14266627

This fix resolved the error here, by adding "import * as React from 'react';" to the top of index.js at
\node_modules\react-native-copilot\dist\index.js

But shouldn't this be unnecessary? And if it does need to import react, should it perhaps be done in the package by default?

from react-native-copilot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.