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

missing type definition for toast/useToast.js #630

Closed
johnalphared opened this issue Nov 8, 2020 · 5 comments
Closed

missing type definition for toast/useToast.js #630

johnalphared opened this issue Nov 8, 2020 · 5 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@johnalphared
Copy link

No description provided.

@tugcekucukoglu
Copy link
Member

Hi,
Could you attach a codesandbox link or a repo?

@bernabei
Copy link

Hi @tugcekucukoglu,
I have a similar problem using TS with this steps:

  1. Clone the official TS quickstart https://github.com/primefaces/primevue-typescript-quickstart
  2. Following the documentation, add mitt dependency... npm install mitt --save
  3. Configure Toast and ToastService in main.ts
  4. Add in App.vue
  5. import useToast in HelloWorld.vue component
  6. run 'npm run serve' and this is the output (note that nothing change using prmievue/usetoast in lowecase):
    ERROR in src/components/HelloWorld.vue:9:26
    TS2307: Cannot find module 'primevue/useToast' or its corresponding type declarations.

@martinzaruba82
Copy link

Have the same issue and when i check primevue nodemodules:
image
The usetoast.d.ts is missing ....

@bernabei
Copy link

Have the same issue and when i check primevue nodemodules:
...
The usetoast.d.ts is missing ....

Exactly

@cagataycivici cagataycivici self-assigned this Nov 25, 2020
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Nov 25, 2020
@cagataycivici cagataycivici added this to the 3.0.2 milestone Nov 25, 2020
@cagataycivici
Copy link
Member

Fixed via 645

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

5 participants