-
Hi all, first time working with vuetify (and vue, for that matter). I'm working on a project and trying to serve vue from Django. This can be done a couple ways, with SFC or making it an SPA, but I'd like this to be a MPA. I've been following this guide, and I'm trying to set it up so I can pass props to vue components. I can currently do this, but when I try to incorporate vuetify for some more complex components, (toolbar, item groups ect), I receive some errors. Alerts, however, work perfectly fine. Here is my repo, and the files in question are: When trying to render my ToolBar component in my django template, I get these errors:
I posted this in the Vuetify discord, and the solution of wrapping my code in a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
- import Vue from 'vue/dist/vue.js'
+ import Vue from 'vue'
<head>
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet">
- <link href="https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css" rel="stylesheet">
- <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.min.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
</head>
<body>
- <v-app>
<div id="hello_world_a" style="width: 49%; display: inline-block">
+ <v-app>
<tool-bar msg="{{ msg }}"></tool-bar>
+ </v-app>
</div>
- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.js"></script>
-</v-app>
</body> |
Beta Was this translation helpful? Give feedback.
src/home.js
:templates/home/index.html
: