aws-amplify / learn

AWS Amplify Learn
https://amplify.aws/learn/
Apache License 2.0
266 stars 115 forks source link

Broken tutorials in "Build your first AWS Amplify and React App" #443

Closed katiegoines closed 1 month ago

katiegoines commented 7 months ago

User is following https://amplify.aws/learn/courses/Fullstack-for-Frontend-Developers-e7319 and found a couple of errors / items that need clarification:

Lesson 9

<NoteUICollection overrideItems={({ item, idx }) => {
  return {
    overrides: {
      Vector31472464: {
        as: 'button',
        onClick: () => {
          setShowUpdateModal(true)
          setUpdateNote(item)
        }
      }
    }
  }
}}
/>

import { DataStore } from 'aws-amplify'

This line generates an error ERROR in ./src/App.js 28:18-33 export 'DataStore' (imported as 'DataStore') was not found in 'aws-amplify'. They fixed this to read from '@aws-amplify/datastore, which fixed the compile error.

Lesson 12

References to AmplifyProvider need to be converted to ThemeProvider

Lesson 13

They believe the sequence to connect the backend to the hosted frontend has changed since publication of the tutorial; clicking through the frontend connection doesn't require a backend connection. Even so, after going through View App Settings -> Edit and creating a service role, they were unsuccessful in connecting the backend. The frontend hosting and auth appears to work, but it doesn't load any notes from test data, nor save notes that you create.