Skip to content

Cannot find module '../../assets/img/exactpro-logo.svg' or its corresponding type declarations. #14

@d0rich

Description

@d0rich

Describe the bug
When I am trying to use toolkit as Nuxt layer, I see following error during typecheck:

../components/exactpro-docs/Logo.vue:19:26 - error TS2307: Cannot find module '../../assets/img/exactpro-logo.svg' or its corresponding type declarations.

19 import fallbackLogo from '../../assets/img/exactpro-logo.svg'
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 1 error in ../components/exactpro-docs/Logo.vue:19

To Reproduce
Steps to reproduce the behavior:

  1. Download repository
  2. Run npm install
  3. Run npx nuxi typecheck docs/
  4. See error

Expected behavior
No errors during typecheck.

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