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

tsc: Pass -b flag so that vite.config.ts is type checked #18

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

philbates35
Copy link
Owner

It highlighted the following error:

[philbates@fedora laravel-starter]$ pnpm run build

> @ build /home/philbates/code/philbates35/laravel-starter
> tsc -b && vite build

vite.config.ts:33:20 - error TS2461: Type 'string[] | undefined' is not an array type.

33       exclude: [...configDefaults.coverage.exclude, ...projectExcludes],
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Found 1 error.

See vitejs/vite#15913.

It highlighted the following error:

    [philbates@fedora laravel-starter]$ pnpm run build

    > @ build /home/philbates/code/philbates35/laravel-starter
    > tsc -b && vite build

    vite.config.ts:33:20 - error TS2461: Type 'string[] | undefined' is not an array type.

    33       exclude: [...configDefaults.coverage.exclude, ...projectExcludes],
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Found 1 error.
@philbates35 philbates35 merged commit 5759a33 into main Feb 14, 2024
11 checks passed
@philbates35 philbates35 deleted the tsc-build branch February 14, 2024 16:43
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

Successfully merging this pull request may close these issues.

1 participant