If you add the library to package.json, then node-modules will have the following path to index.js: ../@mgcrea/vision-camera-barcode-scanner/dist/. When using this library, the project build fails with an error. If in build.gradle jsRootDir = file("../src/") is replaced with jsRootDir = file("../dist/") then the project builds successfully
If you add the library to package.json, then node-modules will have the following path to index.js: ../@mgcrea/vision-camera-barcode-scanner/dist/. When using this library, the project build fails with an error. If in build.gradle jsRootDir = file("../src/") is replaced with jsRootDir = file("../dist/") then the project builds successfully