Skip to content
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

Build 5.7.1 fails to install #134

Open
AlibekJ opened this issue Aug 22, 2020 · 9 comments
Open

Build 5.7.1 fails to install #134

AlibekJ opened this issue Aug 22, 2020 · 9 comments

Comments

@AlibekJ
Copy link

AlibekJ commented Aug 22, 2020

Tried installing blinkid-cordova and got a error.

To reproduce:

cordova create something something something
cd something
cordova platform add android
cordova plugin add blinkid-cordova

It fails with:

Using cordova-fetch for cordova-android@^8.0.0
(node:28265) Warning: Accessing non-existent property 'android' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
Adding android project...
Creating Cordova project for the Android platform:
	Path: platforms/android
	Package: something
	Name: something
	Activity: MainActivity
	Android target: android-28
Subproject Path: CordovaLib
Subproject Path: app
Android project created with [email protected]
Installing "blinkid-cordova" for android
Error during processing of action! Attempting to revert...
Failed to install 'blinkid-cordova': Error: Uh oh!
ENOENT: no such file or directory, open '/blinkscan2/plugins/blinkid-cordova/www/blinkIdScanner.js'
    at Object.openSync (fs.js:465:3)
    at Object.readFileSync (fs.js:368:35)
    at install (/blinkscan2/platforms/android/cordova/lib/pluginHandlers.js:162:36)
    at ActionStack.process (/blinkscan2/node_modules/cordova-common/src/ActionStack.js:56:25)
    at PluginManager.doOperation (/blinkscan2/node_modules/cordova-common/src/PluginManager.js:114:20)
    at PluginManager.addPlugin (/blinkscan2/node_modules/cordova-common/src/PluginManager.js:144:17)
    at /blinkscan2/platforms/android/cordova/Api.js:210:74
    at _fulfilled (/blinkscan2/node_modules/q/q.js:854:54)
    at /blinkscan2/node_modules/q/q.js:883:30
    at Promise.promise.promiseDispatch (/blinkscan2/node_modules/q/q.js:816:13)
Uh oh!
ENOENT: no such file or directory, open '/blinkscan2/plugins/blinkid-cordova/www/blinkIdScanner.js'

"blinkid-cordova": "5.7.1",
"cordova-android": "8.1.0"

9.0.0 ([email protected])

Version 5.7.0 works fine.

I hope this crash report helps.

@AlibekJ AlibekJ changed the title Failure to install Build 5.7.1 fails to install Aug 22, 2020
@i1E
Copy link
Member

i1E commented Aug 25, 2020

Hi @AlibekJ,

I cannot reproduce the issue by following steps that you have provided. For me everything works fine. Which version of the Cordova CLI you are using (cordova --version)? Does our ./initCordovaDemoApp.sh work for you?

@AlibekJ
Copy link
Author

AlibekJ commented Aug 25, 2020

It is 9.0.0 ([email protected])

Just tried, the same error as 3 days ago.

@i1E
Copy link
Member

i1E commented Aug 25, 2020

Does sample app generated with our ./initCordovaDemoApp.sh work for you? You can replace this line with:

cordova plugin add blinkid-cordova

to use package from the NPM.

@AlibekJ
Copy link
Author

AlibekJ commented Aug 25, 2020

Nah, I just used [email protected] which works fine.

I can try the sample app. Let me know if it may help in debugging.

@i1E
Copy link
Member

i1E commented Aug 26, 2020

Hi @AlibekJ,

please try ./initCordovaDemoApp.sh script and sample app created by this script and let us know whether it works for you or not. This will help us in debugging.

Also, can you please send us exact steps for reproducing this issue, because we cannot reproduce the issue with steps that you have provided earlier, this worked fine:

cordova create something com.something something
cd something
cordova platform add android
cordova plugin add blinkid-cordova

@agpl
Copy link

agpl commented Sep 19, 2020

I have exacly the same issue. I used react.cordova to initialize cordova project then moved directly to BlinkId installation which throws exactly this error.

@SandraZiv
Copy link

Hi @agpl

can you send us the exact steps to reproduce the issue?

Best regards,
Sandra

@AlibekJ
Copy link
Author

AlibekJ commented Sep 24, 2020

Hey @SandraKuzmic @i1E

These are the steps literally:

cordova create testblink aa.blink.test testblink
cd testblink
cordova platform add android
cordova plugin add blinkid-cordova

@SandraZiv
Copy link

Hi @AlibekJ

I still can't reproduce the error. After following your steps BlinkID plugin is successfully added to the project.

$ cordova create testblink aa.blink.test testblink
Creating a new cordova project.
$ cd testblink/
$ cordova platform add android
Using cordova-fetch for cordova-android@^8.0.0
Adding android project...
Creating Cordova project for the Android platform:
	Path: platforms/android
	Package: aa.blink.test
	Name: testblink
	Activity: MainActivity
	Android target: android-28
Subproject Path: CordovaLib
Subproject Path: app
Android project created with [email protected]
Plugin 'cordova-plugin-whitelist' found in config.xml... Migrating it to package.json
Discovered saved plugin "cordova-plugin-whitelist". Adding it to the project
Installing "cordova-plugin-whitelist" for android
Adding cordova-plugin-whitelist to package.json
$ cordova plugin add blinkid-cordova
Installing "blinkid-cordova" for android
Subproject Path: CordovaLib
Subproject Path: app
Adding blinkid-cordova to package.json

We also tried reproducing the error on different computers and none of them got the error so currently, it is hard to tell where the problem is.

We are soon to release BlinkID plugin v5.8.0 so maybe you could try it after it is released and let us know if the issue still occurs.

Best regards,
Sandra

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants