Environment
|
|
| Operating system |
Linux 6.6.87.2-microsoft-standard-WSL2 |
| CPU |
11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz (16 cores) |
| Node.js version |
v22.22.2 |
| nuxt/cli version |
3.37.0 |
| Package manager |
npm@10.9.7 |
| Nuxt version |
4.5.1 |
| Nitro version |
2.13.4 |
| Builder |
vite@8.2.0 |
| Config |
compatibilityDate, css, devServer, devtools, modules |
| Modules |
@nuxt/ui@4.10.0 |
Is this bug related to Nuxt or Vue?
Nuxt
Package
v4.x
Version
v.4.10.0
Reproduction
- You need to add into
app folder, file {anything}.d.ts.
- Add the following code:
declare module "nuxt/schema" {
interface AppConfigInput {}
}
export {};
- Observe that the
ui property in app.config.ts becomes required.
Description
Without a .d.ts file, the ui property is optional:
After adding a .d.ts file that augments nuxt/schema, the ui property becomes required:
Expected behavior
The ui property should remain optional after augmenting nuxt/schema.
Additional context
No response
Logs
Environment
Linux 6.6.87.2-microsoft-standard-WSL211th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz (16 cores)v22.22.23.37.0npm@10.9.74.5.12.13.4vite@8.2.0compatibilityDate,css,devServer,devtools,modules@nuxt/ui@4.10.0Is this bug related to Nuxt or Vue?
Nuxt
Package
v4.x
Version
v.4.10.0
Reproduction
appfolder, file {anything}.d.ts.uiproperty in app.config.ts becomes required.Description
Without a
.d.tsfile, theuiproperty is optional:After adding a
.d.tsfile that augmentsnuxt/schema, theuiproperty becomes required:Expected behavior
The
uiproperty should remain optional after augmentingnuxt/schema.Additional context
No response
Logs