Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apps use server's tsconfig during the build #311

Open
ShGKme opened this issue Aug 30, 2024 · 2 comments
Open

Apps use server's tsconfig during the build #311

ShGKme opened this issue Aug 30, 2024 · 2 comments

Comments

@ShGKme
Copy link
Contributor

ShGKme commented Aug 30, 2024

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",
        ╵              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ShGKme
Copy link
Contributor Author

ShGKme commented Aug 30, 2024

Note, this only happens on development, when you have app cloned to the server, but no server dependencies installed

@susnux
Copy link
Contributor

susnux commented Sep 7, 2024

Not sure if this is configurable, I could not find anything.

If not than this is a "wont fix" because cloning into apps/ is a unsupported dev setup, you probably want to use apps-extra or similar, as apps/ is for shipped apps only.
Using any other app directory will solve this issue, as the server config is only about apps/ and core/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants