FAQ
This FAQ aims to answer some of the most common programming questions that we get on the Vue Land Discord server.
It is not a substitute for the official Vue documentation, available at https://vuejs.org/. Those docs include an FAQ for Vue itself at https://vuejs.org/about/faq.html.
Work in progress
Only about half the questions have complete answers. Those questions are listed in the sidebar on the left. The other answers are just stubs.
- Which Vue component library should I use?
- What folder structure should I use for my Vue project?
- Can I use Nuxt features without using Nuxt? stub
- Do Vue 2 components work with Vue 3?
- I need users to stay logged in if they refresh the page. Should I use cookies or local storage? stub
- Why is there a
#
before my route path? - Why does my page fail to load when I refresh in production?
- Why do I get a blank page in production?
- How do I deploy to GitHub Pages?
- How do I add dynamic
<meta>
tags to my application?
- How should my components communicate? stub
- How do I call a method in a child component? stub
- Why are my template refs not working? stub
- How can I share state with a composable? stub
- How can I pass all slots through to a child component?
- How can I make Vue 'wait' for the data before rendering? stub
- Why isn't
v-html
rendering my components? stub - Can I create a local variable in my template?
- Can I use JavaScript classes for my reactive data? stub
- Why does selecting one item select them all? stub
- How do I create unique element ids with Vue?
- Why can't I use the current route in
App.vue
?
- Why does my logging show an empty/missing value after I've loaded the data? stub
- Why can I see my data in console logging, but if I try to access it in my code I get
undefined
or an error? stub - Why is my
FormData
empty?
- When to use
reactive()
andref()
? stub - Why are the new value and old value the same in my watcher? stub