Como implementar no laravel 8.x + jetstream + inert... | Fórum | School of Net

Deseja poder participar de nosso fórum e tirar todas as suas dúvidas?
Clique aqui e assine nosso plano de acesso ilimitado. Saiba mais.

por JOHNNY

2 semanas, 5 dias atrás JOHNNY

Como implementar no laravel 8.x + jetstream + inertia + vuejs + vuetify?

undefined ``` require('./bootstrap'); window.Vue = require('vue'); import Vuetify from 'vuetify'; Vue.use(Vuetify); // Import modules... import { createApp, h } from 'vue'; import { App as InertiaApp, plugin as InertiaPlugin } from '@inertiajs/inertia-vue3'; import { InertiaProgress } from '@inertiajs/progress'; const el = document.getElementById('app'); createApp({ render: () => h(InertiaApp, { initialPage: JSON.parse(el.dataset.page), resolveComponent: (name) => require(`./Pages/${name}`).default, vuetify: new Vuetify(), }), }) .mixin({ methods: { route } }) .use(InertiaPlugin) .use(vuetify) .mount(el); InertiaProgress.init({ color: '#4B5563' }); ``` Tentei varias vezes mas não consegui encontra o motivo do erro abaixo: export 'default' (imported as 'Vue') was not found in 'vue' (possible exports: BaseTransition, Comment, Fragment, KeepAlive, Static, Suspense, Teleport, Text, Transition, TransitionGroup, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compile, computed, createApp, createBlock, createCommentVNode, createHydrationRenderer, createRenderer, createSSRApp, createSlots, createStaticVNode,

5 Respostas