From daf99c3cac96e805f5ca7a31e803490878ec708f Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Wed, 21 Sep 2022 16:06:20 +0200 Subject: [PATCH] docs: recommend to not overwrite some keys in tsconfig (#7717) --- docs/content/2.guide/2.directory-structure/3.tsconfig.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/2.guide/2.directory-structure/3.tsconfig.md b/docs/content/2.guide/2.directory-structure/3.tsconfig.md index e552d41211c..138538f3974 100644 --- a/docs/content/2.guide/2.directory-structure/3.tsconfig.md +++ b/docs/content/2.guide/2.directory-structure/3.tsconfig.md @@ -14,4 +14,4 @@ Nuxt [automatically generates](/guide/concepts/typescript) a `.nuxt/tsconfig.jso } ``` -As you need to, you can customize the contents of this file. However, note that if you need to customize your `paths`, this will override the auto-generated path aliases. Instead, we recommend that you add any path aliases you need to the `alias` property within your `nuxt.config`, where they will get picked up and added to the autogenerated `tsconfig`. +As you need to, you can customize the contents of this file. However, it is recommended that you don't overwrite `target`, `module` and `moduleResolution`. Moreover, note that if you need to customize your `paths`, this will override the auto-generated path aliases. Instead, we recommend that you add any path aliases you need to the `alias` property within your `nuxt.config`, where they will get picked up and added to the auto-generated `tsconfig`.