-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Updated Vue getting started guide #4711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
name: 'App', | ||
async created() { | ||
this.getTodos(); | ||
this.subscribe(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the only real change in this file. This was calling subscribe before it was added.
@@ -1,17 +1,25 @@ | |||
Use the Vue CLI to bootstrap a new Vue 3 app (selecting the defaults will work for this project): | |||
Use the Vue Vite powered `create-app` to bootstrap a new Vue 3 app (selecting the defaults will work for this project): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved guides to use the new create-app
utility for Vue 3.
## Vue Vite Config | ||
|
||
Now that our Vue app is set up and Amplify is initialized, we're ready to add an API in the next step. | ||
When working with a Vue `create-app` that uses [Vite](https://vitejs.dev) you must make a few additional modifications. Please follow the steps below. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vite requires a little more configuration
}, | ||
] | ||
} | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!!!! This lines up with what we are recommending to customers as well - it will be nice to have a section in our docs we can refer customers to. I am probably going to take this part and add it to the troubleshooting side of the JS library guide. kevinold/repro-vite-amplify@4d6b422
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK great!
Issue #, if available:
Description of changes: This updates the getting started guide for Vue.js. Fixes some issues with the guide.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.