import Vue from 'vue';
import App from './App.vue';
import router from './router';
import {Vuetify} from 'vuetify';
import { store } from './store/store';
import { BootstrapVue, IconsPlugin } from 'bootstrap-vue';
import 'bootstrap/dist/css/bootstr
我启动了一个新的vue-router / Webpack项目,并在通过vue init vuetify/webpack建立了一个项目之后尝试实施了一个项目。
我根据来自的指令来设置路由器。经过一些修改之后,我改变了导入Vue组件的方式,从而使其工作正常。
在我的router/index.js文件中:
// works for me
import Main from '../components/Main.vue'
// does NOT work; from the tutorial
import Main from '@/components/Main'
我
我是VueJS的新手。我已经使用vuetify/webpack-ssr模板创建了一个项目,现在我想创建一个登录页面,但是表单没有显示,控制台给了我以下内容: [Vue warn]: Unknown custom element: <v-form> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
[Vue warn]: Unknown custom element: <v-text-fie
在安装Vuetify之后,我当前收到以下控制台错误。我使用的是webpack 3.6版 Uncaught TypeError: Cannot read property 'extend' of undefined
at Module../src/mixins/themeable/index.ts (index.ts:21)
at __webpack_require__ (bootstrap:19)
at Module../src/components/VApp/VApp.ts (vuetify.js:391)
at __webpack_requ
添加/集成Vuetify时出现错误,如..在main.js中从' Vuetify /lib‘Vue.use(Vuetify)导入Vuetify 错误: ERROR in ./node_modules/vuetify/src/stylus/components/_grid.styl
Module parse failed: Unexpected character '@' (1:0)
You may need an appropriate loader to handle this file type.
| . @import '../bootstrap&
我建立了一个新的Vue项目,它使用Vue CLI和Vuetify构建了一个基本的脚手架,并使用了树抖动来消除任何我不需要的组件。我真正感兴趣的是供应商的文件,其中有Vuetify组件(想必是块-供应商.dist/js和dist/css下的文件)。
我的项目中的HTML包括那些供应商文件,但我不明白如何向Vue注册插件。例如,在我应用程序的JS文件中:
Vue.use(vuetify); // where do I get the vuetify plugin object from?
new Vue({...})
首先,我对npm生成的app JS/CSS文件不感兴趣。我只使用整个设置,这样我
现在我发现了这些错误:
未定义TypeError:无法设置未定义的属性“呈现”
找不到元素:#main
这是我的代码,我试图寻找其他的答案,但它们似乎没有帮助。我试图创建一个简单的搜索过滤器使用VueJs,Vuetify和普通JavaScript。
//main.js
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import vuetify from
嘿,我在我的项目中引入毒气有问题.
我做错了什么?
Vue警告:未知的自定义元素:-正确注册组件吗?对于递归组件,请确保提供"name“选项。
app.js:
import Vue from "vue";
import Vuetify from "./plugins/vuetify";
import store from "~/store";
import router from "~/router";
import App from "~/components/App";
Vue.config