UnSpiraTive
UnSpiraTive
NNuxt
Created by UnSpiraTive on 4/28/2025 in #❓・help
Typecheck errors from extended app
I have main app which include:
/app/repository/base.repo.ts <- fetchGet, fetchPost etc
/app/repository/base.repo.ts <- fetchGet, fetchPost etc
No I import it in my repositories
import BaseRepo from "~/repository/base.repo";
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 }]],
extends: [["@app/main", { install: true }]],
and when i run typecheck here:
error TS2307: Cannot find module '~/repository/base.repo' or its corresponding type declarations.
error TS2307: Cannot find module '~/repository/base.repo' or its corresponding type declarations.
How can I handle it?
5 replies
NNuxt
Created by UnSpiraTive on 12/10/2024 in #❓・help
Import based on .nuxtignore
Hello, I use .nuxtignore inside my app, which inherits from another app (layers). I would like to ask if it is possible to import a component only if it is not ignored? resolveComponent work almost fine but it raise console warning ;/
5 replies