Comments (8)
@cwomack I added you as a collaborator to a sample repo where you can reproduce this issue yourself. You should be able to pull it down and follow the instructions I will add to the README to reproduce the issue. Thanks.
from amplify-js.
My issues were resolved by implementing the suggestion in the following comment:
aws/aws-sdk-js-v3#4877 (comment)
from amplify-js.
@langerkirill, glad you found the workaround already! We'll mark this as a bug on our side due to the dependencies in our library on the aws-sdk
. We're tracking this internally and will update this issue when a fix is released on our side that updates our dependencies.
In the mean time, if anyone comes across this same blocker please refer to this comment for a workaround.
from amplify-js.
Hey, @langerkirill and thanks for opening this issue. The decode
method in React Native is vended by base-64
package which is a dependency of @aws-amplify/react-native
. Can you see if deleting your node_modules
folder, as well as your package-lock.json
file, then reinstalling dependences with npm install
resolves the error?
If it doesn't, possibly verify you have the necessary dependency with npm why base-64
as well.
from amplify-js.
Hi @cwomack, thanks for the response. I tried deleting node_modules
and yarn.lock
, no luck. I got the same error. It does appear that I have base-64
:
Mobile git:2890-slow-login ❯ yarn why base-64 ✹ ✭
yarn why v1.22.22
warning ../../package.json: No license field
[1/4] 🤔 Why do we have the module "base-64"...?
[2/4] 🚚 Initialising dependency graph...
[3/4] 🔍 Finding dependency...
[4/4] 🚡 Calculating file sizes...
=> Found "[email protected]"
info Reasons this module exists
- "@aws-amplify#react-native" depends on it
- Hoisted from "@aws-amplify#react-native#base-64"
info Disk size without dependencies: "20KB"
info Disk size with unique dependencies: "20KB"
info Disk size with transitive dependencies: "20KB"
info Number of shared dependencies: 0
✨ Done in 0.29s.
from amplify-js.
@langerkirill, are you able to provide a sample repo possibly that can reproduce this reliably? We haven't been able to reproduce it on our side with a React Native app. Can you also clarify if you're calling Amplify.configure()
at the root of your app as well?
from amplify-js.
@cwomack, we are unable to call Amplify.configure()
in the root of our app because our app requires that users input a Facility ID on the first page which we then need to use to fetch information that we pass into the Amplify configuration. We have different userpoolid
values for users in different regions for example. We need to configure Amplify on the second page before sign in. This was never an issue with v4. Do you think it may have become an issue for v6?
I will see about getting you a sample repo.
from amplify-js.
I found another error in the debug console mode related to an undefined URL.
from amplify-js.
Related Issues (20)
- amplify/auth resetPassword succeeds but customSmsSender trigger lambda never called HOT 3
- Federated Sign-in - App Sync list query Auth Error HOT 2
- Amplify not works well if I have configuring multiple user pools with condition
- Next, js, Amplify js.fetchAuthSession({forceRefresh: true}) does not work as expected and returns tokens as undefined. How to manage a refresh token in Amplify v6 in Next.js HOT 4
- Amplify CLI Gen 2 - Multiple SortKeys combined into one input with GraphQL Generation HOT 5
- AWS storage upload issue HOT 2
- Datastore.save() sending _version of previous query model instead of current model. HOT 2
- runWithAmplifyServerContext throwing error, ⨯ Error: Cannot access Cognito.length on the server. You cannot dot into a client module from a server component. You can only pass the imported name through. HOT 4
- 6.3.3 is stable ? HOT 1
- ResizeObserver loop when navigating in the Authenticator component HOT 1
- [v6] resetPassword not trigger UserMigration lambda HOT 2
- Add timeout on GET and POST api calls for amplify v6 HOT 2
- No federated JWT token when using AppSync OIDC in Amplify Gen2 HOT 5
- Permission denied - allow.authenticated() HOT 6
- [v6] sendUserAttributeVerificationCode not send code to destination email HOT 5
- MD5 not calculating correctly when selecting file from broswer, failing with BadDigest Error HOT 4
- Auth.SignIn not allowing username only signin HOT 1
- `Hub.listen` not firing when inside `useEffect` HOT 14
- Hub should automatically fire `tokenRefresh` event through Hub HOT 1
- Google login in react native requires two login attempts to work only on production ANDROID HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amplify-js.