Skip to content

"Cannot find module '@/models/node'" when running vue-tsc #156

@saknarf

Description

@saknarf

When I run

vue-tsc --noEmit

in a project I am working on, I get the Error


node_modules/v-network-graph/lib/composables/state.d.ts:7:28 - error TS2307: Cannot find module '@/models/node' or its corresponding type declarations.

7 import * as NodeModel from "@/models/node";
                             ~~~~~~~~~~~~~~~

node_modules/v-network-graph/lib/composables/state.d.ts:8:28 - error TS2307: Cannot find module '@/models/edge' or its corresponding type declarations.

8 import * as EdgeModel from "@/models/edge";
                             ~~~~~~~~~~~~~~~

node_modules/v-network-graph/lib/composables/state.d.ts:9:28 - error TS2307: Cannot find module '@/models/path' or its corresponding type declarations.

9 import * as PathModel from "@/models/path";
                             ~~~~~~~~~~~~~~~


Found 3 errors in the same file, starting at: node_modules/v-network-graph/lib/composables/state.d.ts:7

Graph rendering works fine and in my browser I get no errors, but I need to pass typechecking in this project.

How can I fix or avoid this error? I am not allowed to disable typechecking.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions