Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module '"vue"' has no exported member 'PluginFunction' with ToastService #1639

Closed
NicolasMelin opened this issue Oct 5, 2021 · 1 comment

Comments

@NicolasMelin
Copy link

Hello,

I have a problem with typescript when I'm run a typescript checktsc -p tsconfig.json --noEmit, I have the following error:

> ./node_modules/typescript/bin/tsc -p tsconfig.json --noEmit

node_modules/primevue/toastservice/ToastService.d.ts:1:15 - error TS2305: Module '"vue"' has no exported member 'PluginFunction'.

1 import Vue, { PluginFunction } from 'vue';
                ~~~~~~~~~~~~~~


Found 1 error.

The application works but I have this typescript error. When I remove the ToastService I haven't longer this error ! This is my main.ts vue3 file:

import { createApp } from 'vue';
import App from '@/App.vue';
import router from '@/router';
import { createI18n } from 'vue-i18n';
import fr from '@/translations/fr.json';
import FontAwesomeIcon from '@/plugins/font-awesome';
import store from "@/store";

import PrimeVue from 'primevue/config';
import 'primevue/resources/themes/md-light-indigo/theme.css';
import 'primevue/resources/primevue.min.css';
import 'primeicons/primeicons.css';
import ToastService from 'primevue/toastservice';

import '/public/main.css';
import '/public/theme.overrided.css';

const app = createApp(App);

const i18n = createI18n({
    locale: 'fr',
    fallbackLocale: 'fr',
    messages: { fr },
});

app.use(PrimeVue);
app.use(ToastService);
app.use(i18n);
app.use(router);
app.use(store);
app.component('FontAwesomeIcon', FontAwesomeIcon);
app.mount('#app');

Thanks by advance for your help :).

Best regards.

@tugcekucukoglu
Copy link
Member

Fixed for 3.8.0. Details #1596

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

No branches or pull requests

2 participants