axelor / axelor-mobile Goto Github PK
View Code? Open in Web Editor NEWImprove your productivity with the Axelor Mobile apps
License: Other
Improve your productivity with the Axelor Mobile apps
License: Other
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.
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
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.