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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Native 0.69.0: warn Package react-native-fingerprint-scanner has been ignored because it contains invalid configuration. Reason: "dependency.assets" is not allowed #217

Open
anija opened this issue Jul 5, 2022 · 4 comments

Comments

@anija
Copy link

anija commented Jul 5, 2022

Hi! 馃憢

Firstly, thanks for your work on this project! 馃檪

Today I used patch-package to patch react-native-fingerprint-scanner@6.0.0 for the project I'm working on.

When I upgraded React Native to latest version (0.69.0), i started to see this warning:
warn Package react-native-fingerprint-scanner has been ignored because it contains invalid configuration. Reason: "dependency.assets" is not allowed

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-fingerprint-scanner/react-native.config.js b/node_modules/react-native-fingerprint-scanner/react-native.config.js
index 5f794ab..c36ba55 100644
--- a/node_modules/react-native-fingerprint-scanner/react-native.config.js
+++ b/node_modules/react-native-fingerprint-scanner/react-native.config.js
@@ -4,8 +4,5 @@ module.exports = {
       ios: {},
       android: {},
     },
-    assets: [],
-    // hooks are considered anti-pattern, please avoid them
-    hooks: {},
   },
 };

This issue body was partially generated by patch-package.

@mikehardy
Copy link
Collaborator

Oh this one is really important as it the CLI fails the module configuration completely until they release a new version
@anija do you think you could post a full PR for this instead of just the patch?

@anija
Copy link
Author

anija commented Jul 5, 2022

Oh this one is really important as it the CLI fails the module configuration completely until they release a new version
@anija do you think you could post a full PR for this instead of just the patch?

I can't do enough test at this moment to feel comfortable in posting a PR :(

@mikehardy
Copy link
Collaborator

That's okay in general I think - you post PR, and CI runs test, or then I have the ability to use github command line tool to easily pull the PR and run tests. No PR? No ability to use tools to do testing etc and integrating a patch for testing is manual process

@mikehardy
Copy link
Collaborator

Flagging a PR like that (like "Hey, I'm posting this but have not had time to test, sorry, hopefully it works or is easier for others to test/verify this way"). It's a human process :-)

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

2 participants