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

Vite build with Typescript Module '"vue"' has no exported member 'PluginFunction'. in ConfirmationService.d.ts and ToastService.d.ts #1596

Closed
yichunsung opened this issue Sep 22, 2021 · 3 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@yichunsung
Copy link
Contributor

yichunsung commented Sep 22, 2021

The issue when using typescript in vue-tsc --noEmit && vite build

ConfirmationService.d.ts and ToastService.d.ts has some issue.

package version:

  • "vue": "^3.2.6"
  • "vite": "^2.5.2"
  • "vue-tsc": "^0.2.2"

if using vue-tsc --noEmit, it not working with these error.

Error message

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

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

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

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

I have already create a new PR #1595

@PeterHewat
Copy link

Hi @yichunsung

This helped me out. I can confirm it fixes the issue. I hope your PR gets into the next release.

@MichaelVonB
Copy link

Same setup, hope it will get fixed

@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Oct 4, 2021
@cagataycivici cagataycivici added this to the 3.8.0 milestone Oct 4, 2021
@cagataycivici
Copy link
Member

@mertsincan Review please for 3.8.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

6 participants