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

Type Error when setting telemetry: false in nuxt.config.ts within Monorepo #153

Open
samydoesit opened this issue Sep 18, 2024 · 0 comments

Comments

@samydoesit
Copy link

samydoesit commented Sep 18, 2024

We are encountering a type error in our monorepo setup when setting telemetry: false in the nuxt.config.ts file.

Error Details:

When telemetry: false is added to the configuration, we see the following error:

Type 'false' has no properties in common with type 'Partial<TelemetryOptions>'.(2559)
schema.d.ts(21, 5): The expected type comes from property 'telemetry' which is declared here on type 'InputConfig<NuxtConfig, ConfigLayerMeta>'
(property) NuxtConfig["telemetry"]?: Partial<TelemetryOptions> | undefined

This issue persists in our monorepo even after running nuxt prepare. However, I was able to reproduce this with a fresh Nuxt project on Stackblitz, but the error appears only on the first run.
Once the nuxt prepare step is ran a second time in Stackblitz, the error no longer occurs.

Steps to Reproduce:

  1. Open a new Nuxt project on Stackblitz using this link: https://nuxt.new/s/v3
  2. Stop the dev server.
  3. In the nuxt.config.ts, add telemetry: false,.
  4. Observe the Nuxt error that appears.

Additional Notes:

In the monorepo, the error persists despite running nuxt prepare multiple times.

telemetry-false-problem.mov
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

1 participant