Giter VIP home page Giter VIP logo

axelor-mobile's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

axelor-mobile's Issues

Error when executing yarn build

Hi,

I followed step by step installation guide,however, when I execute yarn build, I am getting multiple errors.

src/components/templates/ObjectCard/ObjectCard.tsx(245,14): error TS2746: This JSX tag's 'children' prop expects a single child of type 'ReactNode', but multiple children were provided.
 src/components/templates/ObjectCard/ObjectCard.tsx(291,13): error TS2769: No overload matches this call.
         Overload 1 of 2, '(props: ViewProps | Readonly<ViewProps>): View', gave the following error.
           Type 'Element[]' is not assignable to type 'ReactNode'.
         Overload 2 of 2, '(props: ViewProps, context: any): View', gave the following error.
           Type 'Element[]' is not assignable to type 'ReactNode'.
       npm ERR! Lifecycle script `compile` failed with error: 
       npm ERR! Error: command failed 
       npm ERR!   in workspace: @axelor/[email protected] 

I am using Linux(Ubuntu), node version v16.20.2, java 11.0.19, yarn 1.22.19, axelor-mobile 7.1.1/master.

>  NX   Ran target build for 7 projects (3s)
 
    ✔    1/2 succeeded [0 read from cache]
 
    ✖    1/2 targets failed, including the following:
         - nx run @axelor/aos-mobile-ui:build

Any help and advice is appreciated.

Error when running yarn android command: Cannot read property 'useRef' of null

Overview of the Issue

I followed the installation guide step by step and did not encounter any errors during the install process. However, when I tried to run the yarn android command, I got the following error:

 Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
    at Application (http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.aosmobile&modulesOnly=false&runModule=true:204825:31)
    at App
    at RCTView
    at View
    at RCTView
    at View
    at AppContainer (http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.aosmobile&modulesOnly=false&runModule=true:65710:36)
    at AosMobile(RootComponent) (http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.aosmobile&modulesOnly=false&runModule=true:71133:28)

TypeError: Cannot read property 'useRef' of null

This error is located at:
    in Application (at App.js:29)
    in App (at renderApplication.js:50)
    in RCTView (at View.js:32)
    in View (at AppContainer.js:92)
    in RCTView (at View.js:32)
    in View (at AppContainer.js:119)
    in AppContainer (at renderApplication.js:43)
    in AosMobile(RootComponent) (at renderApplication.js:60), js engine: hermes

What I try

I expected the command to launch the app on my device, but instead it failed with the error message.

I searched the documentation and the existing issues, but I could not find a solution for this problem. I tried to change the version of React and react native. When I changed react to v17.0.2, the error still occured. When I changed react native to v0.69.8, the app just crashed.

Environment

I am using Windows 10, Node.js v18.15.0, and yarn v1.22.19. I am using a git bash instead of CMD.

Can anyone help me with this issue? Thank you.

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.