Skip to content

Apps use server's tsconfig during the build #311

@ShGKme

Description

@ShGKme

Vite searches for tsconfig.json in parent directories regardless of having own tsconfig.json or using TS in an app.

It results in:

  • Warning each build
  • Potentially using incorrect config if an app is cloned to the /apps/ directory.

I haven't found a way to ignore the config yet...
Only to install server's dependency @vue/tsconfig to remove the warning.

> vite build

▲ [WARNING] Cannot find base config file "@vue/tsconfig/tsconfig.json" [tsconfig.json]

    ../../tsconfig.json:2:12:
      2 │   "extends": "@vue/tsconfig/tsconfig.json",
        ╵              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. to develop1️⃣ Accepted and waiting to be taken care ofhelp wantedExtra attention is neededstatus: needs info❓ Further information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions