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

type-check runs on error #5

Open
SamBrishes opened this issue Mar 25, 2024 · 0 comments
Open

type-check runs on error #5

SamBrishes opened this issue Mar 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@SamBrishes
Copy link
Contributor

The following error occurs while running npm run type-check.

[CustomFile.vue]:224:23 - error TS7016: Could not find a declaration file for module 'miru.ink/button/ButtonStd.vue'. 'C:/[...]/node_modules/miru.ink/button/ButtonStd.vue' implicitly has an 'any' type.
  There are types at 'C:/[...]/node_modules/miru.ink/button/ButtonStd.d.vue.ts', but this result could not be resolved when respecting package.json "exports". The 'miru.ink' library may need to update its package.json or typings.

Seems to be the same error as found on this discussion -< Need to find out what solution has been used there.

However, current temporary solution (as mentioned by adrianszymanski89) works so far:

In your vite-env.d.ts file, you have to add this line:

declare module "*";
@SamBrishes SamBrishes added the bug Something isn't working label Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant