-
Notifications
You must be signed in to change notification settings - Fork 531
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
Example from readme fails to operate #469
Comments
Please provide more detail, outline the steps you took... please provide your code. |
I am also finding the same behaviour - init a project using vue-cli, add a new component testform.vue, copy the sample code in from here and see the same errors in the console. Here's the code once I got it running:
|
I had something similar starting from the gitbooks example usage. To get it working I needed to:
Thanks for what looks like a useful system, and I look forward to using it fully. For completeness note that, as the docs indicate, for usage in a local component, I replaced:
by (after the
|
I’m working on the docs over the holiday, so I’ll try this out and see about getting it updated. We’ve migrated the docs on GitBooks to a GitHub repro (vue-form-generator-docs), so feel free to submit a PR with changes. |
…-cli project * converted to single-quotes (vue-cli default settings) * converted `data` property into a function * added `validateAsync` to `formOptions` to show it is available * added `vfg.css` * added `Vue` import
@trickidicki PR #571 should resolve the README.md example |
#469 - fixes example in README, tested with a fresh vue-cli project
@PeterC66 the GitBooks docs have been moved to https://vue-generators.gitbook.io/vue-generators/ I've fixed the sample code in the usage section (as well as the README.md in the main project) The updated examples should work with @vue/cli 3.x projects (tested with 3.0.1 and 3.2.1) |
Report a bug
Example from readme fails to operate. Browser console shows a lot of errors:
[Vue warn]: The "data" option should be a function that returns a per-instance value in component definitions.
[Vue warn]: Property or method "schema" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
Property or method "model" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
[Vue warn]: Property or method "formOptions" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
Just follow your readme
Demo form shown + no errors in browser console, I suppose; idk what is meant to be expected behaviour of the demo from your readme to be honest.
Up to the maintainers of the package
Please tell us about your environment:
N/A
The text was updated successfully, but these errors were encountered: