Environment
|
|
| Operating system |
macOS 25.2.0 |
| CPU |
Apple M1 Pro (10 cores) |
| Node.js version |
v24.8.0 |
| nuxt/cli version |
3.32.0 |
| Package manager |
pnpm@10.17.1 |
| Nuxt version |
4.3.0 |
| Nitro version |
2.13.1 |
| Builder |
vite@7.3.1 |
| Config |
$development, app, colorMode, compatibilityDate, css, devtools, eslint, experimental, features, fonts, future, icon, mdc, modules, nitro, pwa, runtimeConfig, svgo, typescript, vite |
| Modules |
@nuxt/eslint@1.10.0, @nuxt/fonts@0.12.1, @nuxt/icon@2.1.0, @nuxt/image@2.0.0, @nuxtjs/color-mode@3.5.2, @nuxtjs/device@3.2.4, @nuxtjs/mdc@0.18.2, nuxt-svgo@4.2.6, @vueuse/nuxt@14.0.0, @vite-pwa/nuxt@1.0.7 |
Reproduction
git clone git@github.com:besidka/besidka.git
pnpx nuxt upgrade --dedupe
pnpm run dev
Describe the bug
after upgrading to Nuxt v4.3.0, I receive the error on app start:
defineAppConfig is not defined
When I try to add an explicit import to app/app.config.ts
import { defineAppConfig } from '#app'
I receive another error
[plugin impound] Vue app aliases are not allowed in server runtime. [importing `#app` from `app/app.config.ts`]
Additional context
No response
Logs
H3Error {▼
stack: 'defineAppConfig is not defined\n' +
'at /Users/inevix/dev/main/besidka-pr/app/app.config.ts:3:15)\n' +
' at ModuleJob.run (node:internal/modules/esm/module_job:371:25)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n' +
' at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:702:26)\n' +
' at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5)',
message: 'defineAppConfig is not defined',
cause: ReferenceError {▼},
statusCode: 500,
fatal: false,
unhandled: false,
statusMessage: undefined,
data: undefined,
}
Environment
macOS 25.2.0Apple M1 Pro (10 cores)v24.8.03.32.0pnpm@10.17.14.3.02.13.1vite@7.3.1$development,app,colorMode,compatibilityDate,css,devtools,eslint,experimental,features,fonts,future,icon,mdc,modules,nitro,pwa,runtimeConfig,svgo,typescript,vite@nuxt/eslint@1.10.0,@nuxt/fonts@0.12.1,@nuxt/icon@2.1.0,@nuxt/image@2.0.0,@nuxtjs/color-mode@3.5.2,@nuxtjs/device@3.2.4,@nuxtjs/mdc@0.18.2,nuxt-svgo@4.2.6,@vueuse/nuxt@14.0.0,@vite-pwa/nuxt@1.0.7Reproduction
Describe the bug
after upgrading to Nuxt v4.3.0, I receive the error on app start:
When I try to add an explicit import to
app/app.config.tsI receive another error
Additional context
No response
Logs
H3Error {▼ stack: 'defineAppConfig is not defined\n' + 'at /Users/inevix/dev/main/besidka-pr/app/app.config.ts:3:15)\n' + ' at ModuleJob.run (node:internal/modules/esm/module_job:371:25)\n' + ' at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n' + ' at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:702:26)\n' + ' at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5)', message: 'defineAppConfig is not defined', cause: ReferenceError {▼}, statusCode: 500, fatal: false, unhandled: false, statusMessage: undefined, data: undefined, }