mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
add overwriting disclaimer to tsconfig section (#2483)
This commit is contained in:
parent
1104d42346
commit
6e32bde7ae
@ -29,6 +29,12 @@ This file contains the recommended basic TypeScript configuration for your proje
|
|||||||
::alert{icon=👉}
|
::alert{icon=👉}
|
||||||
Nitro also [auto-generates types](/concepts/server-engine#typed-api-routes) for API routes. Plus, Nuxt also generates types for globally available components and [auto-imports from your composables](/docs/directory-structure/composables), plus other core functionality.
|
Nitro also [auto-generates types](/concepts/server-engine#typed-api-routes) for API routes. Plus, Nuxt also generates types for globally available components and [auto-imports from your composables](/docs/directory-structure/composables), plus other core functionality.
|
||||||
::
|
::
|
||||||
|
::alert
|
||||||
|
Keep in mind that all options extended from `./.nuxt/tsconfig.json` will be overwritten by the options defined in your `tsconfig.json`.
|
||||||
|
Overwriting options such as `"compilerOptions.paths"` with your own configuration will lead Typescript to not factor in the module resolutions from `./.nuxt/tsconfig.json`. This can lead to module resolutions such as `#app` not being recognized.
|
||||||
|
|
||||||
|
In case you need to extend options provided by `./.nuxt/tsconfig.json` further, you can use the `alias` property withing your `nuxt.config`. `nuxi` will pick them up and extend `./.nuxt/tsconfig.json` accordingly.
|
||||||
|
::
|
||||||
|
|
||||||
## Stricter Checks
|
## Stricter Checks
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user