Comments (8)
Hi @spring-bconnect, are you using the amplify-js library for the web portion of your application?
from amplify-flutter.
from amplify-flutter.
from amplify-flutter.
How to generate this amplify folder if its separate frontend and backend?? As per the documentation given :
Only amplify_outputs.json is created?
Can you provide next steps so that build does not fail??
from amplify-flutter.
Hi @spring-bconnect, I see that you've run the first command to get the amplify_outputs.json
file. Can you also run npx ampx generate outputs --app-id <your-backend-amplify-app-id> --branch main --format dart --out-dir lib
command so that you get the amplify_outputs.dart file as well for the dart side as well?
from amplify-flutter.
I did the same for dart amplify outputs generation. Getting the same when I try to deploy next js app
from amplify-flutter.
Amplify folder is outside the frontend apps in monorepo structure.. in shared backend.. As per error it constructs:
Amplify Backend not found
What setup is required so that it points to amplify backend generated and hosted separately on server.
npx ampx generate outputs --branch main --app-id BACKEND_APP_ID
Above command only generates amplify_outputs.json file. It does not create amplify folder in root directory.
Is there any configuration missing or its a bug??
from amplify-flutter.
Hello @spring-bconnect, thanks for reaching out. With Monorepo support, you should not need any amplify folder as it is in a separate place. So that part should not be a problem.
For your application to understand what kind of configuration you have, it should generate amplify_outputs.json for Next.js application and amplify_outputs.dart for the Flutter application.
For generating the amplify_outputs.dart, you can run the following command in the amplify.yaml file that you can find in the build settings.
version: 1
backend:
phases:
build:
commands:
- npm ci --cache .npm --prefer-offline
- npx ampx generate outputs --branch $AWS_BRANCH --app-id $AWS_APP_ID --format dart --out-dir lib
Also, you did the setup as monorepo, right? So the amplify folder is known by the console.
from amplify-flutter.
Related Issues (20)
- Isolate Support
- Error when uploading images with logged-in user: Invalid identity pool configuration. Check assigned IAM roles for this pool. HOT 6
- Error : amplify upload file function not throwing an exception HOT 7
- Pubspec version failed HOT 1
- ANDROID: Error when receiving background notifications in release mode HOT 3
- [amplify_analytics_pinpoint_dart] Upgrade `drift` dependency. HOT 3
- Error while configuring storage category HOT 3
- [Gen2] Error on macOS after upgrade to 2.4.0
- Intermittent Issue - Cannot read properties of undefined (reading 'permission_types') HOT 4
- Instance of 'UnknownSmithyHttpException' on adding amplify_analytics_pinpoint: ^2.2.0 HOT 4
- ModelQueries.list fails randomly without any logs HOT 7
- PushNotificationException: "Error occurred awaiting for device token." HOT 3
- DataStore sync errors and sync delay on iOS on version 2.4.0 HOT 2
- PlatformException on MacOS through amplify_secure_storage and amplify_auth HOT 7
- Google signup working as expected for IOS but not for Andriod devices HOT 3
- Getting "Cannot return null for non-nullable type: 'AWSDateTime' within parent" HOT 1
- TEST HOT 6
- Max number of 100 subscriptions reached only for IOS , Android works fine. HOT 6
- Android version can't setup/use AmplifyPushNotificationsPinpoint() plugin HOT 6
- Signature of re-encoded JWT tokens have an invalid signature HOT 1
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-flutter.