NuxtN
Nuxt9mo ago
4 replies
UnSpiraTive

Typecheck errors from extended app

I have main app which include:
/app/repository/base.repo.ts <- fetchGet, fetchPost etc

No I import it in my repositories
import BaseRepo from "~/repository/base.repo";

When I run npx nuxi typecheck everything is okey.

But I have app2 which extends main app.
extends: [["@app/main", { install: true }]],

and when i run typecheck here:
error TS2307: Cannot find module '~/repository/base.repo' or its corresponding type declarations.


How can I handle it?
Was this page helpful?