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

usetoast.d.ts casing issue #825

Closed
RobWalker opened this issue Dec 31, 2020 · 1 comment
Closed

usetoast.d.ts casing issue #825

RobWalker opened this issue Dec 31, 2020 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@RobWalker
Copy link

Related to #630

I am still getting:

src/components/records/fields/MultiSetFieldDetail.vue:37:26
TS7016: Could not find a declaration file for module 'primevue/usetoast'. '..../node_modules/primevue/usetoast.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/primevue` if it exists or add a new declaration (.d.ts) file containing `declare module 'primevue/usetoast';`

If I look in node_modules/primevue I see a useToast.d.ts and usetoast.js ... all the other components match exactly on casing.

Renaming useToast.d.ts to usetoast.d.ts fixes the problem.

@cagataycivici cagataycivici self-assigned this Jan 6, 2021
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jan 6, 2021
@cagataycivici cagataycivici added this to the 3.1.2 milestone Jan 6, 2021
@cagataycivici
Copy link
Member

Resolved in 3.1.2

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

2 participants