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
[Vue warn]: Property or method "index" is not defined on the instance but referenced during render. #3780
Comments
Finally I found the problem.I forgot to change the original code to
in another file warn:
no warn:
|
First forgive me for this post, but i'm going through a similar situation.. Vue.js version Vuex.js version my file actions.js export const addForm = ({ dispatch }) => { dispatch('ADD_FORM') } export const deleteForm = ({ dispatch }) => { dispatch('DELETE_FORM') } and my component.vue < template> < ul class="dropdown-menu"> < li> < a @click="addForm"> save< /a> < /li> < li> < a @click="deleteForm"> delete< /a> < /li> < /ul> < /template> <script type="text/javascript"> import { addForm, deleteForm } from './vuex/actions' export default { actions: { addForm, deleteForm } } </script> this is the result
What should I do to correct this warning? |
@carvalhoviniciusluiz You shouldn't be defining |
I have a similar situation, could anyone tell how can I fix the v-for loop? Template:
Script:
|
Vue.js version
2.0.0-rc.7
What is actually happening?
I'm trying to change my 1.x vue project to 2.0.0,but got a warn
code:
What should I do to remove this warn?
The text was updated successfully, but these errors were encountered: