From 00da4118bccd523980c6940f4fa6a6252eb66c2e Mon Sep 17 00:00:00 2001 From: tmckeage Date: Thu, 5 Aug 2021 17:39:18 -0400 Subject: [PATCH] import Amplify from 'aws-amplify'; doesn't work before GraphQL is installed import Amplify from 'aws-amplify'; doesn't work before GraphQL is installed. Using import { Amplify } from '@aws-amplify/core'; works --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a82f723..80b22ee 100755 --- a/README.md +++ b/README.md @@ -179,7 +179,7 @@ The first thing we need to do is to configure our Angular application to be awar To configure the app, open __main.ts__ and add the following code below the last import: ```js -import Amplify from 'aws-amplify'; +import { Amplify } from '@aws-amplify/core'; import amplify from './aws-exports'; Amplify.configure(amplify); ``` @@ -637,4 +637,4 @@ If you are unsure of what services you have enabled at any time, you can run the amplify status ``` -`amplify status` will give you the list of resources that are currently enabled in your app. \ No newline at end of file +`amplify status` will give you the list of resources that are currently enabled in your app.