admin管理员组文章数量:1404923
To implement the Authentication Screen in my bare native react app, I am trying to use AWS Amplify Gen 1 Authentication.
To implement "WithAuthenticator" component of AWS Amplify, have installed @aws-amplify/ui-react-native (which also installs other dependencies). However, since then the app build is failing, throwing below error Task :react-native-pager-view:processDebugManifest FAILED
(package.json) "dependencies": { "@aws-amplify/react-native": "^1.1.6", "@aws-amplify/ui-react-native": "^2.4.2", "@react-native-async-storage/async-storage": "^2.1.0", "@react-native-community/netinfo": "^11.4.1", "@react-native-community/slider": "4.5.2", "@react-navigation/bottom-tabs": "^6.6.1", "@react-navigation/native": "^6.1.18", "@react-navigation/native-stack": "^6.11.0", "aws-amplify": "^6.13.2", "react": "18.2.0", "react-hook-form": "^7.53.0", "react-native": "0.74.5", "react-native-get-random-values": "^1.11.0", "react-native-image-picker": "^7.1.2", "react-native-pager-view": "^6.6.1", "react-native-safe-area-context": "^4.14.0", "react-native-screens": "^3.31.1", "react-native-tab-view": "^3.5.2", },
I suspect this could be the known behavior of React Native libraries not working with 3rd party libraries, unless they are of some specific version. Appreciate some guidance or direction to resolve this.
(Note: I am not a seasoned programmer, simply following a react native app build tutorial)
To implement the Authentication Screen in my bare native react app, I am trying to use AWS Amplify Gen 1 Authentication.
To implement "WithAuthenticator" component of AWS Amplify, have installed @aws-amplify/ui-react-native (which also installs other dependencies). However, since then the app build is failing, throwing below error Task :react-native-pager-view:processDebugManifest FAILED
(package.json) "dependencies": { "@aws-amplify/react-native": "^1.1.6", "@aws-amplify/ui-react-native": "^2.4.2", "@react-native-async-storage/async-storage": "^2.1.0", "@react-native-community/netinfo": "^11.4.1", "@react-native-community/slider": "4.5.2", "@react-navigation/bottom-tabs": "^6.6.1", "@react-navigation/native": "^6.1.18", "@react-navigation/native-stack": "^6.11.0", "aws-amplify": "^6.13.2", "react": "18.2.0", "react-hook-form": "^7.53.0", "react-native": "0.74.5", "react-native-get-random-values": "^1.11.0", "react-native-image-picker": "^7.1.2", "react-native-pager-view": "^6.6.1", "react-native-safe-area-context": "^4.14.0", "react-native-screens": "^3.31.1", "react-native-tab-view": "^3.5.2", },
I suspect this could be the known behavior of React Native libraries not working with 3rd party libraries, unless they are of some specific version. Appreciate some guidance or direction to resolve this.
(Note: I am not a seasoned programmer, simply following a react native app build tutorial)
Share Improve this question edited Mar 21 at 9:32 Cool1 asked Mar 9 at 17:47 Cool1Cool1 511 silver badge11 bronze badges1 Answer
Reset to default 0First, I compared my current package.json with the earlier git committed package.json, where the app was working but the below aws amplify ui library was still not installed.
@aws-amplify/ui-react-native": "^2.4.2",
Observed that the previous version was "aws-amplify": "^6.12.2" and not "^6.13.2" (as seen in latest package.json which seems to have updated after installing @aws-amplify/ui-react-native 2.4.2)
So browsed the below npm link for the aws amplify ui library and tried to install earlier versions.
https://www.npmjs/package/@aws-amplify/ui-react-native?activeTab=versions
When tried to install the library version which was a year old (2.1.0), it shows error "supported only till react 0.73", while my react version is "0.74". Thus started trying versions earlier than an year and which would no longer show the above error. Eventually, installed version 2.2.0 using below.
$ npm install @aws-amplify/[email protected]
On installing version 2.2.0, noticed that "aws-amplify": "^6.12.2" (as per earlier package.json where app was working)
Now restarted the node server and re-built the app.
The AWS Amplify UI component for Authentication was now loaded on the app screen, showing the login page for the app.
本文标签:
版权声明:本文标题:React Native App Build fails with AWS-Amplify Gen1 Authentication component , throwing error Task :react-native-pager-view:proce 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744864055a2629241.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论