Questions tagged [aws-amplify]

AWS framework for rapidly developing backends for mobile and web applications.

AWS Amplify provides the greatest common denominators for mobile backends, including authentication, analytics, notifications, storage, and offline realtime database AWS AppSync.

It works for Android, iOS, and Web clients, and provides integration with popular client runtimes such as React Native, React, Angular, and Ionic.

AWS Amplify provides a modern toolchain, including a powerful CLI and codegen.

See more at their website: https://docs.amplify.aws/

4787 questions
1
vote
1 answer

@aws-amplify dependency issue with vite build

I'm currently working on converting our React project over to use Vite. It is great for development so far but when we try to run vite build (npm run build), we run into the following issue with @aws-amplify [commonjs--resolver] Unexpected token…
ffx292
  • 542
  • 12
  • 27
1
vote
0 answers

Google Login with cognito in a new popup window

I have Cognito for user management and I have integrated the Google login with that and in my React app I have Auth.federatedSignIn({provider: "google"}) and it takes the user to the Gmail account selection page in the same tab. I am looking around…
Deepak
  • 261
  • 1
  • 9
1
vote
1 answer

Does the top-level-await error mean Webpack is already installed?

I'm getting the error Module parse failed: The top-level-await experiment is not enabled (set experiments.topLevelAwait: true to enabled it) After some research, I created a webpack.config.js file in the same location as my package.json file. Here…
Tennis Smith
  • 451
  • 6
  • 14
1
vote
1 answer

How to make one async db call and save output for subsequent functions?

I am trying to keep db queries to a minimum. The goal is to make one query and use data in other functions. So far, I have this code: async function GetCoverage(scroll_path) { const apiName = "xxxx"; const path = "/scrolls/" + scroll_path; …
Tennis Smith
  • 451
  • 6
  • 14
1
vote
0 answers

Next.js website successfully deployed on Vercel but showing internal server error after deployment on AWS Amplify

I have built a Next.js website and successfully deployed it on Vercel. The deployment on Vercel is functioning correctly without any errors. However, when I attempt to deploy the website on AWS Amplify, the provisioning, build, and deployment…
1
vote
2 answers

AWS Amplify CustomerError: Cannot read 'next' version in package.json

I'm trying to deploy a simple Next.JS app that has just a front-end with no back-end or database connections to AWS Amplify but I keep getting this error on the build: 2023-05-20T17:00:51.907Z [INFO]: # Checking for Git submodules at:…
code writer 3000
  • 329
  • 5
  • 19
1
vote
1 answer

Redeploy amplify app with different profile

I accidently deployed my amplify app to the wrong region and account, but I've put a lot of work into the API. How do I change the profile and redeploy everything without having to completely rebuild the API? I've deleted the app from the…
Jamie Marshall
  • 1,885
  • 3
  • 27
  • 50
1
vote
0 answers
1
vote
1 answer

Next-Auth deployment to aws amplify in a NextJS application

I am using NextAuth for authentication using Cognito... While adding storage (S3) I am getting this error I tried to go to Amplify Dashboard to add storage and there so I manually tried to reuse my auth setup but same error I need client secret…
1
vote
0 answers

Appsync VTL to js resolver with mysql serverless

This is how js resolver file looks like from aws docs: import {util} from '@aws-appsync/utils'; export function request(ctx) { console.log("CTX", ctx); return {}; } export function response(ctx) { console.log("result...."); …
Nodir Nasirov
  • 1,488
  • 3
  • 26
  • 44
1
vote
0 answers

How to get the url of a file from aws amplify in dart

Future queryFileFromStorage(String key) async { try { final result = await Amplify.Storage.getUrl(key: key); print(result); } catch (e) { print('Error querying file from storage: $e'); } } This is how…
Atomic Boy
  • 11
  • 1
1
vote
2 answers

AWS S3 download files from the S3 bucket that the Cognito user has access to (Angular project)

I am trying to create a desktop application, which sends user files to Amazon S3, where the users can then sign in to a website to view/download their files. I have the desktop application working, it has the user sign in and upload the files to…
1
vote
0 answers

How to Search User by usernames in Cognito using Flutter App

I have built a app in Flutter using AWS Amplify. I have my user stored in Cognito. I have to build a feature where I can search users using usernames. I saw many online solutions and even tried ChatGpt but couldn't find any accurate answer.
1
vote
1 answer

Error building nextjs app on AWS Amplify: Could not initialize platform for 'staging': Access Denied

\# Starting phase: build 2023-05-03T02:31:47.363Z \[INFO\]: \[33mNote: It is recommended to run this command from the root of your app directory\[39m 2023-05-03T02:31:47.908Z \[WARNING\]: - Initializing your environment:…
ajunx8
  • 11
  • 2
1
vote
0 answers

React native "FATAL ERROR: v8::ArrayBuffer::NewBackingStore Allocation failed" when importing amplify or auth

I'm trying to build an app by using React Native and expo. For my navigation I use expo router. Now, for authentication and database, I implemented a logic using AWS amplify. (Worked with this…
1 2 3
99
100