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

TS error ...will overwrite file when certain files exist #27172

Closed
then3rdman opened this issue May 12, 2024 · 3 comments
Closed

TS error ...will overwrite file when certain files exist #27172

then3rdman opened this issue May 12, 2024 · 3 comments

Comments

@then3rdman
Copy link

Environment


  • Operating System: Darwin
  • Node Version: v20.11.1
  • Nuxt Version: 3.11.2
  • CLI Version: 3.11.1
  • Nitro Version: 2.9.6
  • Package Manager: pnpm@9.1.0
  • Builder: -
  • User Config: eslint, fonts, pinia, ui, vueuse, modules, typescript, devtools
  • Runtime Modules: @nuxt/eslint@0.3.12, @nuxt/fonts@0.7.0, @nuxt/test-utils/module@3.12.1, @pinia/nuxt@0.5.1, @nuxt/ui@2.16.0, @vueuse/nuxt@10.9.0
  • Build Modules: -

Reproduction

https://github.com/then3rdman/nuxt-starter/tree/ts-error

Describe the bug

TS has a warning about overwriting the eslint.config.mjs file only when there is a TS file inside the server directory.

Additional context

Manually setting noEmit: true in tsconfig.server.json fixes the warning.

Logs

No response

@danielroe
Copy link
Member

This is resolved in unjs/nitro#2402

@then3rdman
Copy link
Author

I thought that would be the case but has this not made it downstream into Nuxt yet?

@danielroe
Copy link
Member

danielroe commented May 21, 2024

Exactly. It will be resolved when Nitro is next released.

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

No branches or pull requests

2 participants