Closed chopfitzroy closed 5 years ago
Hello.
Same problem with my programm. The Vue file did not parse and I solved the problem by adding https://github.com/vuejs/rollup-plugin-vue during the compiling time.
I suggest a PR.
Cheers !
I've released v0.2.1
@kazupon Still not working on 0.2.1
, 0.3.0
and 0.4.0
, my plugin.js
file is:
/*
* NOTE:
* This file is plugin stub for main.js
*/
import Vue from 'vue'
import VueResource from 'vue-resource'
import { ValidationProvider, ValidationObserver, extend, configure } from 'vee-validate';
import * as rules from 'vee-validate/dist/rules';
const config = {
classes: {
valid: '',
invalid: 'is-danger'
}
};
configure(config);
Object.keys(rules).forEach(rule => {
extend(rule, rules[rule]);
});
// Register it globally
Vue.component("validation-observer", ValidationObserver);
Vue.component("validation-provider", ValidationProvider);
import plugin from './index'
Vue.use(VueResource)
Vue.use(plugin)
/*
* NOTE:
* If you want Vue instance of main.js to import something in your plugin as a Vue option,
* you need to export it here.
*/
// export default plugin
I am trying to setup a install a Vue component like so:
However when I try to build (
npm run build
) I get the following output:After reading some of the other issues I think I may need rollup-plugin-vue but I am not entirely sure how to integrate this.
Cheers!