[Vue warn]: Failed to create render function:

I have this strange error that I cannot understand.

I am using the latest VueJS pulled from an official CDN using

<script src="https://unpkg.com/vue/dist/vue.js"></script>

enter image description here

The specified line is as follows:

enter image description here

Has anyone experienced this? Is this a VueJS issue?

Next edit:

I believe the error is here:

  attrs: { "type": "text", "name": "phone", "value": "", "id": "phone", "phone_number": } 

v-bind in the "phone_number" field for some reason does not work properly.

Removed :phone_number="phone_number" and wrote it again, and it just worked.

+5
source share
1 answer

The error was actually, as you pointed out there

 attrs: { "type": "text", "name": "phone", "value": "", "id": "phone", "phone_number": } 

"phone_number": nothing was set here, so Vue hid it and threw an error saying that the value} was unexpected.

+2
source

Source: https://habr.com/ru/post/1265398/


All Articles