Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Vue 3? #1

Open
Kirack37 opened this issue Apr 16, 2021 · 1 comment
Open

Vue 3? #1

Kirack37 opened this issue Apr 16, 2021 · 1 comment

Comments

@Kirack37
Copy link

Kirack37 commented Apr 16, 2021

I'm having a problem using this in Vue 3. I import like this in my app.js:

import { createApp, h } from 'vue';
import { App as InertiaApp, plugin as InertiaPlugin } from '@inertiajs/inertia-vue3';
import { InertiaProgress } from '@inertiajs/progress';

import VueFinalModal from 'vue-final-modal'
import PortalVue from "portal-vue";
import { Modalable, ToModal } from "@protonemedia/inertia-vue-modal-poc"

const el = document.getElementById('app');

createApp({
        render: () =>
            h(InertiaApp, {
                initialPage: JSON.parse(el.dataset.page),
                resolveComponent: (name) => require(`./Pages/${name}`).default,
            }),
    })
    .mixin({ methods: { route } })

    .use(InertiaPlugin)
    .component("Modalable", Modalable)
    .component("ToModal", ToModal)
    .use(PortalVue)
    .use(VueFinalModal())
    .mount(el);

But I'm having this problem:
export 'ToModal' (imported as 'ToModal') was not found in '@protonemedia/inertia-vue-modal-poc' (module has no exports)

@Tofandel
Copy link

Tofandel commented Mar 3, 2022

I made a vue3 fork https://github.com/Tofandel/inertia-vue3-modal

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants