Skip to content

Failed to compile template #95

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

Closed
jmaister opened this issue Nov 5, 2016 · 5 comments
Closed

Failed to compile template #95

jmaister opened this issue Nov 5, 2016 · 5 comments

Comments

@jmaister
Copy link

jmaister commented Nov 5, 2016

[Vue warn]: failed to compile template:

{{ field.label }}
{{{field.help}}}
{{ btn.label }}
{{ field.hint }}
{{ error }}
  • invalid expression: {{{field.help}}}

(found in component )

@icebob
Copy link
Member

icebob commented Nov 5, 2016

Are you trying to use with Vue 2.x?

@jmaister
Copy link
Author

jmaister commented Nov 5, 2016

Yes, I am using Vue 2.0.5.

I just found that running with Vue 1.x works perfectly.

@jmaister jmaister closed this as completed Nov 5, 2016
@icebob
Copy link
Member

icebob commented Nov 5, 2016

Yes, we are working on Vue v2.x support #89

@markuman
Copy link

I got the same error, but also with 0.6.1 (installed with npm install vue-form-generator --save)

$ npm list|grep form-generator
├─┬ [email protected]



    [Vue warn]: Error compiling template:

    <div><fieldset v-if="schema != null" class=vue-form-generator><template v-for="field in fields"><div v-if=fieldVisible(field) :class=getFieldRowClasses(field) class=form-group><label>{{ field.label }}<span v-if=field.help class=help><i class=icon></i><div class=helpText>{{{field.help}}}</div></span></label><div class=field-wrap><component :is=getFieldType(field) :disabled=fieldDisabled(field) :model.sync=model :schema.sync=field></component><div v-if="field.buttons &amp;&amp; field.buttons.length &gt; 0" class=buttons><button v-for="btn in field.buttons" @click="btn.onclick(model, field)" :class=btn.classes>{{ btn.label }}</button></div></div><div v-if=field.hint class=hint>{{ field.hint }}</div><div v-if="field.errors &amp;&amp; field.errors.length &gt; 0" class=errors><span v-for="error in field.errors" track-by=$index>{{ error }}</span></div></div></template></fieldset></div>

    - invalid expression: {{{field.help}}}
     
    (found in <VueFormGenerator>)

any ideas?

@icebob
Copy link
Member

icebob commented Feb 27, 2017

The v0.6.1 is for only vue 1.x
For Vue 2.x use the latest v2.0.0-beta release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants