Skip to content

type-check runs on error #5

@SamBrishes

Description

@SamBrishes

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 "*";

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions