Hi all,
I don't seem to be able to run npm install , I run into the issue bellow
Failing at script : "postinstall": "jetifier && node apply-diagnostic-modules.js && node fix-qrscanner-gradle.js && yarn browserify-coinlib", more precisely at execution of node fix-qrscanner-gradle.js
This is the state of fix-qrscanner-gradle.js in master
I made sure to verify data variable data type is string. This data is imported from cordova config file located in node_modules folder : cordova-plugin-qrscanner-11/src/android/qrscanner.gradle. Everything seems to be fine with the reading of this file.
So the issue seem to be coming directly from the replaceAll function
Hi all, I don't seem to be able to run
This is the state of fix-qrscanner-gradle.js in master
I made sure to verify data variable data type is string. This data is imported from cordova config file located in node_modules folder : cordova-plugin-qrscanner-11/src/android/qrscanner.gradle. Everything seems to be fine with the reading of this file.
So the issue seem to be coming directly from the
npm install
, I run into the issue bellow Failing at script :"postinstall": "jetifier && node apply-diagnostic-modules.js && node fix-qrscanner-gradle.js && yarn browserify-coinlib"
, more precisely at execution ofnode fix-qrscanner-gradle.js
replaceAll
functionI tried different fixes but the only one that seems to work was the one stated on this website : https://www.designcise.com/web/tutorial/how-to-fix-replaceall-is-not-a-function-javascript-error So changing
replaceAll
back to oldreplace
functionFinal working file being the one bellow![AirgapVaultIssue3](https://user-images.githubusercontent.com/52639848/219849586-8552388b-ecaa-43f3-8b14-4c057b88a4a2.PNG)
Everything seem to work just fine this way. Please let me know if the issue is coming from local config/package/versions