Giter Site home page Giter Site logo

uidb-dev / react.cordova Goto Github PK

View Code? Open in Web Editor NEW
67.0 67.0 9.0 76.5 MB

best bundle to webApp mobile- react and cordova

JavaScript 98.43% CSS 1.57%
android hybrid-app hybrid-mobile-app ios react react-cordova react-cordova-bundle react-native reactjs webapp

react.cordova's People

Contributors

arkwld avatar bar-uidb avatar dependabot[bot] avatar orchuban avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

react.cordova's Issues

Have to manually yarn install after reco init

When doing

reco init ...

Gives error:

Plugin dependency "[email protected]" already fetched, using that version.
Installing "cordova-plugin-badge" for ios
Adding cordova-plugin-local-notification to package.json

reco-react-cli ERROR : Error: Command failed: npm run build
Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `react-scripts build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/vladimir.lopez/.npm/_logs/2019-12-03T17_55_54_328Z-debug.log

./HelloCamera/react-js/public/index.html ready to by mobile app with cordova
updete homepage in react-js package.json , now it's ready to by mobile app with cordova.

There is also a typo: updete -> update
Had to manually cd react-js && yarn install

Unexpected token .

I do issue a:
reco init com.example.hello "hello world"
command and I get this error:

/usr/local/lib/node_modules/react.cordova/bin/reco2/index.js:431
newVersion = dataView?.latest[dataView?.versions?.length - 1];

SyntaxError: Unexpected token .
at Object.compileFunction (vm.js:406:10)
at Generator.next ()
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

Any ideea please why I get that ?

window.cordova is undefined

Is "npm start" meant to load with cordova and plugins with hot reloading? Or do you have to build then inspect?

I've tried reco init on version 1.8 and 2 and it loads on npm start but window.cordova is undefined

[ERROR] _npmUser

`Emulator running...
please wait, processing...
undefined:271
"_npmUser": "orcho <[email protected]

SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at Socket. (/usr/local/lib/node_modules/react.cordova/bin/reco2/index.js:381:25)
at Socket.emit (events.js:327:22)
at Socket.EventEmitter.emit (domain.js:482:12)
at addChunk (_stream_readable.js:295:12)
at readableAddChunk (_stream_readable.js:267:11)
at Socket.Readable.push (_stream_readable.js:212:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:186:23)
npm ERR! code ELIFECYCLE
`

First install

Hello,

After installing and creating the first app, when starting ( npm start ) i get the following:

./src/index.js
Module not found: Can't resolve 'cordova_script' in 'f:\test\hello_world\src'

reco: command not found

Hi!
I'm trying to init react.cordova with reco init com.example.hello "hello world" but receiving bash: reco: command not found.
Doing this on windows from root react.cordova project.
What I mght miss?

ERROR running npm run build && cordova run browser

npm run build && cordova run browser

> reco checkversion && react-scripts build && reco copy && cordova build

/usr/local/lib/node_modules/react.cordova/bin/reco2/index.js:437
                newVersion = dataView?.latest[dataView?.versions?.length - 1];

SyntaxError: Unexpected token '.'
    at Object.compileFunction (vm.js:379:18)
    at Generator.next (<anonymous>)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

Any idee what happened ?
Last week it worked!

Error when reco start and selecting 2nd option

I want to run the recently created app into the ios emulator:

reco start
-> selected 2nd option

gives this error:

reco-cli-serve ERROR : cordova serve error ,RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded

Babel?

I tried to add react-id-swiper and got a babel error.

Unable to build cordova

Two issues encountered:

  1. "reco build" unable to build cordova. But "reco cordova build" works.
  2. "reco build" gives error when building cordova for iOS.

=============================

C:\Users\See Lin\www\reco\ttt>reco build

start build react

[email protected] build C:\Users\See Lin\www\reco\ttt\react-js
react-scripts build

Creating an optimized production build...
Compiled with warnings.
...
...
The build folder is ready to be deployed.

Find out more about deployment here:

https://bit.ly/CRA-deploy

reco start to build cordova

child_process.js:210
throw new ERR_INVALID_ARG_VALUE('args', arguments[pos]);

TypeError [ERR_INVALID_ARG_VALUE]: The argument 'args' is invalid. Received { cwd: 'cordova' }
at Object.execFile (child_process.js:210:11)
at Proxy.exec (child_process.js:152:18)
at Object.reco.state.callBack_replaceWwwRootDir (C:\Users\See Lin\AppData\Roaming\npm\node_modules\react.cordova\bin\cli.js:121:46)
at C:\Users\See Lin\AppData\Roaming\npm\node_modules\react.cordova\bin\cli.js:745:36
at cb (C:\Users\See Lin\AppData\Roaming\npm\node_modules\react.cordova\node_modules\ncp\lib\ncp.js:255:37)
at WriteStream. (C:\Users\See Lin\AppData\Roaming\npm\node_modules\react.cordova\node_modules\ncp\lib\ncp.js:133:14)
at Object.onceWrapper (events.js:286:20)
at WriteStream.emit (events.js:203:15)
at WriteStream.EventEmitter.emit (domain.js:448:20)
at finishMaybe (_stream_writable.js:646:14)

C:\Users\See Lin\www\reco\ttt>reco cordova build
Checking Java JDK and Android SDK versions

ANDROID_SDK_ROOT=C:\Tools\Android-sdk (recommended setting)
ANDROID_HOME=C:\Tools\Android-sdk (DEPRECATED)
...
....

BUILD SUCCESSFUL in 12s
42 actionable tasks: 2 executed, 40 up-to-date

Built the following apk(s):
C:\Users\See Lin\www\reco\ttt\cordova\platforms\android\app\build\outputs\apk\debug\app-debug.apk

reco-cli-cordova ERROR : Error: Command failed: cordova build
CordovaError: Promise rejected with non-error: 'xcodebuild was not found. Please install version 9.0.0 or greater from App Store'
at cli.catch.err (C:\Users\See Lin\AppData\Roaming\npm\node_modules\cordova\bin\cordova:29:15)
at process._tickCallback (internal/process/next_tick.js:68:7)

Change port

Is possible change port 3000 at 'reco serve'?
I already tried some ways, but no success.

react-router-dom is not working

when I run the app through Serve it's working fine, but after building an Apk I guess react-router-dom is not working.. please guys I need guidance

Reco: error on npm run start

First i installed sudo npm install -g react.cordova
Then i initalized the project reco init com.example.hello "recotest" with a empty template

On npm run start i get this error

Compiled with problems:X
ERROR in ./src/index.js 9:0-24
Module not found: Error: Can't resolve 'cordova_script' in 'D:\code\Tests\recotest\src'

I did not change the code.

Not able to set up

CLI doesn't run.

C:\WORKSPACE\MOBILE>reco init com.fidelity.hybrid "hello world"
? Please select project template Reco template

---------reco start to build react-app---------
.......reco-cli-init--install-react.cordova-navigation_controller ERROR : Error: spawn C:\WINDOWS\system32\cmd.exe ENOENT
reco-cli-init-react ERROR : Error: Command failed: npx create-react-app hello_world
npx: installed 98 in 19.408s
npm ERR! Unexpected end of JSON input while parsing near '...rc.1":"2016-10-04T22:'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\[USERNAME]\AppData\Roaming\npm-cache\_logs\2020-05-04T15_31_46_605Z-debug.log

error:  [Error: ENOENT: no such file or directory, open 'C:\WORKSPACE\MOBILE\hello_world\public\index.html'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'C:\\WORKSPACE\\MOBILE\\hello_world\\public\\index.html'
}
C:\Users\[USERNAME]\AppData\Roaming\npm\node_modules\react.cordova\bin\reco2\init.js:137
            let dataString = data.toString();
                                  ^

TypeError: Cannot read property 'toString' of undefined
    at ReadFileContext.callback (C:\Users\[USERNAME]\AppData\Roaming\npm\node_modules\react.cordova\bin\reco2\init.js:137:35)
    at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:246:13)

Phonegap build

Hey, since i don't have a Mac Product i can't run xcode -> and simply can't build the normal way.

When using PhoneGap build tool iOS works perfectly fine, but my Android version throws an error.

Here's the log file.

https://pastebin.com/ZCmP1GDN

This is my Config.xml:

https://pastebin.com/hcCFsknp

I don't know if this is the way i'm supposed to handle splash screens and icons when having merged cordova and react.

I hope you can help me out so we can release this new build :)

Error: Cannot find module 'esm'

Error: Cannot find module 'esm' at Function.Module._resolveFilename (module.js:548:15) at Function.Module._load (module.js:475:25) at Module.require (module.js:597:17) at require (internal/module.js:11:18) at Object.<anonymous> (C:\Users\or\AppData\Roaming\npm\node_modules\react.cordova\.bin\reco:3:11) at Module._compile (module.js:653:30) at Object.Module._extensions..js (module.js:664:10) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3)

Help me how to use this app.

I run this first.

reco init com.example.first "first"

And it generates the node_modules, public, src, ....

It looks like react initial folders. for react js it is working.
such as npm start, npm build, etc.

But when I am trying to add the android platform it says error.

cordova platform add android

The error was, Current working directory is not a Cordova-based project.

I am in the "hello" folder. I understood this system will work for cordova and react both.

But I cannot see any cordova folders and files.

So I tried, cordova create myApp org.apache.cordova.myApp myApp

Then I can see myApp folders and it works for corodva.

It looks like two systems are working respectively.

Then why this one is need? can you help me what I am wrong?

Blank Screen on IOS and Android

Hi,

I have been trying to use react.cordova to build an app. Everything seems to work perfectly fine in the browser, but whenever I try to deploy it on IOS or Android all I get is a blank screen.

This is easily reproducible using the app created out of the box with reco init. If I just use cordova to create an example application it works fine.

Also, the directions in the readme don't work -> reco init com.example.hello "Hello World" as react complains about upper case letters in the name.

`reco-cli-init--install-react.cordova-navigation_controller ERROR : Error: spawn /bin/sh ENOENT
reco-cli-init-react ERROR : Error: Command failed: npx create-react-app Hello_World
npx: installed 99 in 4.075s
Cannot create a project named "Hello_World" because of npm naming restrictions:

  • name can no longer contain capital letters

Please choose a different project name.
`

Thanks,

Matt

Correct way to import cordova.js

Hi,

looking in to Cordova documentation, the access to the plugins is done via
cordova.plugins.<...>

But with react.cordova which is the best way to include the cordava.js file? The index.html generated by the build can be edited? Cordova should be imported as npm dependency in any js file of the app that will use a plugin?

Thanks for the help!

What is the workflow in git for project created with this package?

Hi,
Awesome package!
(; כל הכבוד
Please advise what is the workflow for project created with this library,
i saw that the platforms and plugins folder are ignored by default in git,
so after i pushed project to git and cloned it in other PC how do i generate those folders again?

Android Built failed

PS E:\repo-sync\hello_world> cordova run android
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=undefined (DEPRECATED)
Using Android SDK: C:\Users\afici\AppData\Local\Android\sdk
Subproject Path: CordovaLib
Subproject Path: app

Configure project :app
WARNING:: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed in version 7.0 of the Android Gradle plugin.
For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01

Task :app:compileDebugJavaWithJavac FAILED
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:33: error: cannot find symbol
import android.support.v4.app.NotificationCompat;
^
symbol: class NotificationCompat
location: package android.support.v4.app
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:34: error: package android.support.v4.util does not exist
import android.support.v4.util.ArraySet;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:35: error: package android.support.v4.util does not exist
import android.support.v4.util.Pair;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:52: error: cannot find symbol
import static android.support.v4.app.NotificationManagerCompat.IMPORTANCE_MAX;
^
symbol: class NotificationManagerCompat
location: package android.support.v4.app
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:52: error: static import only from classes and interfaces
import static android.support.v4.app.NotificationManagerCompat.IMPORTANCE_MAX;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:53: error: cannot find symbol
import static android.support.v4.app.NotificationManagerCompat.IMPORTANCE_MIN;
^
symbol: class NotificationManagerCompat
location: package android.support.v4.app
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:53: error: static import only from classes and interfaces
import static android.support.v4.app.NotificationManagerCompat.IMPORTANCE_MIN;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:28: error: cannot find symbol
import android.support.v4.app.NotificationCompat;
^
symbol: class NotificationCompat
location: package android.support.v4.app
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:29: error: package android.support.v4.app.NotificationCompat.MessagingStyle does not exist
import android.support.v4.app.NotificationCompat.MessagingStyle.Message;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:44: error: cannot find symbol
import static android.support.v4.app.NotificationCompat.DEFAULT_LIGHTS;
^
symbol: class NotificationCompat
location: package android.support.v4.app
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:44: error: static import only from classes
and interfaces
import static android.support.v4.app.NotificationCompat.DEFAULT_LIGHTS;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:45: error: cannot find symbol
import static android.support.v4.app.NotificationCompat.DEFAULT_SOUND;
^
symbol: class NotificationCompat
location: package android.support.v4.app
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:45: error: static import only from classes
and interfaces
import static android.support.v4.app.NotificationCompat.DEFAULT_SOUND;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:46: error: cannot find symbol
import static android.support.v4.app.NotificationCompat.DEFAULT_VIBRATE;
^
symbol: class NotificationCompat
location: package android.support.v4.app
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:46: error: static import only from classes
and interfaces
import static android.support.v4.app.NotificationCompat.DEFAULT_VIBRATE;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:47: error: cannot find symbol
import static android.support.v4.app.NotificationCompat.PRIORITY_MAX;
^
symbol: class NotificationCompat
location: package android.support.v4.app
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:47: error: static import only from classes
and interfaces
import static android.support.v4.app.NotificationCompat.PRIORITY_MAX;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:48: error: cannot find symbol
import static android.support.v4.app.NotificationCompat.PRIORITY_MIN;
^
symbol: class NotificationCompat
location: package android.support.v4.app
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:48: error: static import only from classes
and interfaces
import static android.support.v4.app.NotificationCompat.PRIORITY_MIN;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:49: error: cannot find symbol
import static android.support.v4.app.NotificationCompat.VISIBILITY_PUBLIC;
^
symbol: class NotificationCompat
location: package android.support.v4.app
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:49: error: static import only from classes
and interfaces
import static android.support.v4.app.NotificationCompat.VISIBILITY_PUBLIC;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:50: error: cannot find symbol
import static android.support.v4.app.NotificationCompat.VISIBILITY_SECRET;
^
symbol: class NotificationCompat
location: package android.support.v4.app
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:50: error: static import only from classes
and interfaces
import static android.support.v4.app.NotificationCompat.VISIBILITY_SECRET;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:79: error: package NotificationCompat
does not exist
private static SparseArray<NotificationCompat.Builder> cache = null;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:88: error: package NotificationCompat
does not exist
private final NotificationCompat.Builder builder;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:97: error: package NotificationCompat
does not exist
Notification (Context context, Options options, NotificationCompat.Builder builder) {
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:446: error: package NotificationCompat does not exist
static NotificationCompat.Builder getCachedBuilder (int key) {
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\action\Action.java:25: error: cannot find symbol
import android.support.v4.app.RemoteInput;
^
symbol: class RemoteInput
location: package android.support.v4.app
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:606: error: cannot find symbol
Message[] getMessages() {
^
symbol: class Message
location: class de.appplant.cordova.plugin.notification.Options
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\action\Action.java:111: error: cannot find symbol
public RemoteInput getInput() {
^
symbol: class RemoteInput
location: class de.appplant.cordova.plugin.notification.action.Action
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\localnotification\ClickReceiver.java:25: error: cannot find symbol
import android.support.v4.app.RemoteInput;
^
symbol: class RemoteInput
location: package android.support.v4.app
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Manager.java:30: error: cannot find symbol
import android.support.v4.app.NotificationManagerCompat;
^
symbol: class NotificationManagerCompat
location: package android.support.v4.app
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Manager.java:44: error: cannot find symbol
import static android.support.v4.app.NotificationManagerCompat.IMPORTANCE_DEFAULT;
^
symbol: class NotificationManagerCompat
location: package android.support.v4.app
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Manager.java:44: error: static import only from classes
and interfaces
import static android.support.v4.app.NotificationManagerCompat.IMPORTANCE_DEFAULT;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Manager.java:413: error: cannot find symbol
private NotificationManagerCompat getNotCompMgr() {
^
symbol: class NotificationManagerCompat
location: class de.appplant.cordova.plugin.notification.Manager
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:30: error: cannot find symbol
import android.support.v4.app.NotificationCompat;
^
symbol: class NotificationCompat
location: package android.support.v4.app
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:31: error: package android.support.v4.app.NotificationCompat.MessagingStyle does not exist
import android.support.v4.app.NotificationCompat.MessagingStyle.Message;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:32: error: package android.support.v4.media.app.NotificationCompat does not exist
import android.support.v4.media.app.NotificationCompat.MediaStyle;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:177: error: package NotificationCompat does not exist
private void applyStyle(NotificationCompat.Builder builder) {
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:219: error: package NotificationCompat does not exist
private void applyMessagingStyle(NotificationCompat.Builder builder,
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:220: error: cannot find symbol
Message[] messages) {
^
symbol: class Message
location: class de.appplant.cordova.plugin.notification.Builder
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:240: error: package NotificationCompat does not exist
private void applyBigPictureStyle(NotificationCompat.Builder builder,
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:259: error: package NotificationCompat does not exist
private void applyInboxStyle(NotificationCompat.Builder builder) {
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:278: error: package NotificationCompat does not exist
private void applyBigTextStyle(NotificationCompat.Builder builder) {
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:294: error: package NotificationCompat does not exist
private void applyMediaStyle(NotificationCompat.Builder builder,
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:311: error: package NotificationCompat does not exist
private void applyDeleteReceiver(NotificationCompat.Builder builder) {
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:335: error: package NotificationCompat does not exist
private void applyContentReceiver(NotificationCompat.Builder builder) {
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:360: error: package NotificationCompat does not exist
private void applyActions (NotificationCompat.Builder builder) {
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:412: error: package NotificationCompat does not exist
private NotificationCompat.Builder findOrCreateBuilder() {
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\util\AssetProvider.java:22: error: package android.support.v4.content does not exist
import android.support.v4.content.FileProvider;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\util\AssetProvider.java:24: error: cannot find symbol
public class AssetProvider extends FileProvider {
^
symbol: class FileProvider
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:167: error: cannot find symbol
List<Pair<Date, Intent>> intents = new ArrayList<Pair<Date, Intent>>();
^
symbol: class Pair
location: class de.appplant.cordova.plugin.notification.Notification
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:167: error: cannot find symbol
List<Pair<Date, Intent>> intents = new ArrayList<Pair<Date, Intent>>();
^
symbol: class Pair
location: class de.appplant.cordova.plugin.notification.Notification
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:168: error: cannot find symbol
Set ids = new ArraySet();
^
symbol: class ArraySet
location: class de.appplant.cordova.plugin.notification.Notification
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:185: error: cannot find symbol
intents.add(new Pair<Date, Intent>(date, intent));
^
symbol: class Pair
location: class de.appplant.cordova.plugin.notification.Notification
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:201: error: cannot find symbol
for (Pair<Date, Intent> pair : intents) {
^
symbol: class Pair
location: class de.appplant.cordova.plugin.notification.Notification
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:214: error: cannot find symbol
case IMPORTANCE_MIN:
^
symbol: variable IMPORTANCE_MIN
location: class de.appplant.cordova.plugin.notification.Notification
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:217: error: cannot find symbol
case IMPORTANCE_MAX:
^
symbol: variable IMPORTANCE_MAX
location: class de.appplant.cordova.plugin.notification.Notification
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:433: error: package NotificationCompat does not exist
cache = new SparseArray<NotificationCompat.Builder>();
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:311: error: cannot find symbol
return NotificationCompat.COLOR_DEFAULT;
^
symbol: variable NotificationCompat
location: class de.appplant.cordova.plugin.notification.Options
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:332: error: cannot find symbol
return NotificationCompat.COLOR_DEFAULT;
^
symbol: variable NotificationCompat
location: class de.appplant.cordova.plugin.notification.Options
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:437: error: cannot find symbol
defaults |= DEFAULT_VIBRATE;
^
symbol: variable DEFAULT_VIBRATE
location: class de.appplant.cordova.plugin.notification.Options
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:439: error: cannot find symbol
defaults &= DEFAULT_VIBRATE;
^
symbol: variable DEFAULT_VIBRATE
location: class de.appplant.cordova.plugin.notification.Options
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:443: error: cannot find symbol
defaults |= DEFAULT_SOUND;
^
symbol: variable DEFAULT_SOUND
location: class de.appplant.cordova.plugin.notification.Options
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:446: error: cannot find symbol
defaults &= DEFAULT_SOUND;
^
symbol: variable DEFAULT_SOUND
location: class de.appplant.cordova.plugin.notification.Options
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:450: error: cannot find symbol
defaults |= DEFAULT_LIGHTS;
^
symbol: variable DEFAULT_LIGHTS
location: class de.appplant.cordova.plugin.notification.Options
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:453: error: cannot find symbol
defaults &= DEFAULT_LIGHTS;
^
symbol: variable DEFAULT_LIGHTS
location: class de.appplant.cordova.plugin.notification.Options
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:466: error: cannot find symbol
return VISIBILITY_PUBLIC;
^
symbol: variable VISIBILITY_PUBLIC
location: class de.appplant.cordova.plugin.notification.Options
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:468: error: cannot find symbol
return VISIBILITY_SECRET;
^
symbol: variable VISIBILITY_SECRET
location: class de.appplant.cordova.plugin.notification.Options
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:478: error: cannot find symbol
return Math.min(Math.max(prio, PRIORITY_MIN), PRIORITY_MAX);
^
symbol: variable PRIORITY_MIN
location: class de.appplant.cordova.plugin.notification.Options
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:478: error: cannot find symbol
return Math.min(Math.max(prio, PRIORITY_MIN), PRIORITY_MAX);
^
symbol: variable PRIORITY_MAX
location: class de.appplant.cordova.plugin.notification.Options
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:617: error: cannot find symbol
Message[] messages = new Message[list.length()];
^
symbol: class Message
location: class de.appplant.cordova.plugin.notification.Options
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:617: error: cannot find symbol
Message[] messages = new Message[list.length()];
^
symbol: class Message
location: class de.appplant.cordova.plugin.notification.Options
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:626: error: cannot find symbol
messages[i] = new Message(message, timestamp, person);
^
symbol: class Message
location: class de.appplant.cordova.plugin.notification.Options
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\util\AssetUtil.java:365: error: cannot find symbol
return AssetProvider.getUriForFile(context, authority, file);
^
symbol: method getUriForFile(android.content.Context,java.lang.String,java.io.File)
location: class de.appplant.cordova.plugin.notification.util.AssetProvider
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\action\Action.java:112: error: package RemoteInput does
not exist
return new RemoteInput.Builder(getId())
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\localnotification\ClickReceiver.java:76: error: cannot find symbol
Bundle input = RemoteInput.getResultsFromIntent(getIntent());
^
symbol: variable RemoteInput
location: class de.appplant.cordova.plugin.localnotification.ClickReceiver
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Manager.java:121: error: cannot find symbol
CHANNEL_ID, CHANNEL_NAME, IMPORTANCE_DEFAULT);
^
symbol: variable IMPORTANCE_DEFAULT
location: class de.appplant.cordova.plugin.notification.Manager
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Manager.java:414: error: cannot find symbol
return NotificationManagerCompat.from(context);
^
symbol: variable NotificationManagerCompat
location: class de.appplant.cordova.plugin.notification.Manager
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:114: error: package NotificationCompat does not exist
NotificationCompat.Builder builder;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:178: error: cannot find symbol
Message[] messages = options.getMessages();
^
symbol: class Message
location: class de.appplant.cordova.plugin.notification.Builder
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:222: error: package NotificationCompat does not exist
NotificationCompat.MessagingStyle style;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:224: error: package NotificationCompat does not exist
style = new NotificationCompat.MessagingStyle("Me")
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:227: error: cannot find symbol
for (Message msg : messages) {
^
symbol: class Message
location: class de.appplant.cordova.plugin.notification.Builder
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:243: error: package NotificationCompat does not exist
NotificationCompat.BigPictureStyle style;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:247: error: package NotificationCompat does not exist
style = new NotificationCompat.BigPictureStyle(builder)
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:260: error: package NotificationCompat does not exist
NotificationCompat.InboxStyle style;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:263: error: package NotificationCompat does not exist
style = new NotificationCompat.InboxStyle(builder)
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:279: error: package NotificationCompat does not exist
NotificationCompat.BigTextStyle style;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:281: error: package NotificationCompat does not exist
style = new NotificationCompat.BigTextStyle(builder)
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:296: error: cannot find symbol
MediaStyle style;
^
symbol: class MediaStyle
location: class de.appplant.cordova.plugin.notification.Builder
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:298: error: cannot find symbol
style = new MediaStyle(builder)
^
symbol: class MediaStyle
location: class de.appplant.cordova.plugin.notification.Builder
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:362: error: package NotificationCompat.Action does not exist
NotificationCompat.Action.Builder btn;
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:368: error: package NotificationCompat.Action does not exist
btn = new NotificationCompat.Action.Builder(
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:414: error: package NotificationCompat does not exist
NotificationCompat.Builder builder = Notification.getCachedBuilder(key);
^
E:\repo-sync\hello_world\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:417: error: package NotificationCompat does not exist
builder = new NotificationCompat.Builder(context, options.getChannel());
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
96 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.1.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1s
25 actionable tasks: 1 executed, 24 up-to-date
Command failed with exit code 1: E:\repo-sync\hello_world\platforms\android\gradlew cdvBuildDebug -b E:\repo-sync\hello_world\platforms\android\build.gradle

build error

hi, when i try to run reco build i get this error:
reco start to build cordova

Checking Java JDK and Android SDK versions

ANDROID_SDK_ROOT=undefined (reactmmended setting)
ANDROID_HOME=C:\Users\abdel\AppData\Local\Android\sdk (DEPRECATED)

reco-cli-build-cordova ERROR : Error: Command failed: cordova build
Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio
knowing that i installed all of them can you please help? thank you in advance

running npm run build - cordova error

The error:

Using "requireCordovaModule" to load non-cordova module "q" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
...
npm ERR! [email protected] build: react-scripts build && reco copy && cordova build

reco init error

I'm using the version 2.1.0

When using the 'reco init' to initialise the project, there are error messages both in the middle and at the end:

.......
---------reco start to build cordova-app---------

[Error: ENOENT: no such file or directory, scandir 'templates\empty'] {
errno: -2,
code: 'ENOENT',
syscall: 'scandir',
path: 'templates\\empty'
}
Creating a new cordova project.
.........
run 'cd myapp'
(node:43210) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open 'package.json'
(node:43210) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:43210) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I run this on a Mac. And I notice that no this kind of problem occurs when I run it on Windows instead.

Something weird

Any ideea why this happen:

nvd:~/Documents/reco$ reco init ro.webnou.flom "FLOM"
? Please select project template Reco template

---------reco start to build react-app---------
reco-cli-init-react ERROR : Error: Command failed: npx create-react-app flom

reco-cli-init--install-react.cordova-navigation_controller ERROR : Error: Command failed: npm i cordova_script react.cordova-navigation_controller react-browser-notifications
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"^18.2.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0.0" from [email protected]
npm ERR! node_modules/cordova_script
npm ERR!   cordova_script@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! ~....npm/_logs/2023-05-03T11_15_29_222Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: ~....npm/_logs/2023-05-03T11_15_29_222Z-debug-0.log

add reco scripts to package.json.

Typescript

Is it possible to create a typescript project?

Module not found

Hi CHOBAN

First of all thank you, and will be back for sure with a beer or two :)

I did create a react project

reco init com.something.ro.multi.hello "hello world"

,after I added

npm install react-admin

and

npm install @api-platform/admin

I added then wherever I try, in index.js or in app,js

import { HydraAdmin } from "@api-platform/admin";

but I get

**

Module not found: Can't resolve '@api-platform/admin' in /home/user/reco/hellow_world/src

**

Please help me with this if is possible

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.